.fable-home {
  --blue: #ff3b3b;
  --blue-deep: #e10600;
  --ink: #0a0a0c;
  --card: #18181f;
  --card-2: #131318;
  --line: rgba(255, 255, 255, 0.1);
  --muted: #d1d5db;
  --dim: #9ca3af;
  background: #000;
  color: #fff;
  font-family: "DM Sans", Inter, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
}
.fable-home::before { display: none !important; }
.fable-home a { color: inherit; text-decoration: none; }
.fable-home .skip { position: absolute; left: -999px; }
.fable-home .skip:focus { left: 12px; top: 12px; z-index: 30; background: #fff; color: #000; padding: 8px 12px; }
.fable-home h1,
.fable-home h2,
.fable-home h3 {
  margin: 0;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.fable-home p { margin: 0; }
.f-wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.f-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 8px 48px;
  background: #140808;
  border-bottom: 1px solid rgba(255, 59, 59, 0.45);
  color: #ffe4e4;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.f-banner[hidden],
html.banner-off .f-banner { display: none; }
.f-banner p { max-width: 46rem; }
.f-banner button {
  position: absolute;
  right: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffb4b4;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.f-banner button:hover { background: rgba(255, 59, 59, 0.16); color: #fff; }
.f-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 88px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.f-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.f-brand img { width: 36px; height: 36px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); }
.f-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.f-nav a { color: #e5e7eb; font-size: 15px; font-weight: 500; }
.f-nav a:hover,
.f-nav a[aria-current="page"] { color: #fff; }
.f-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 600;
}
.f-login:hover { background: var(--blue-deep); }
.f-menu { display: none; }
.f-hero { position: relative; padding: 72px 0 40px; text-align: center; overflow: hidden; }
.f-sky { position: relative; height: 64px; overflow: hidden; }
.f-glow {
  position: absolute;
  top: 8px;
  right: 8%;
  width: 150px;
  height: 36px;
  border-radius: 50%;
  background: #ff5a5a;
  filter: blur(14px);
  opacity: 0.95;
  pointer-events: none;
}
.f-arc {
  position: absolute;
  left: 50%;
  bottom: -190px;
  width: 140%;
  height: 240px;
  border: 1px solid rgba(255, 90, 90, 0.5);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.f-hero .f-wrap { position: relative; z-index: 1; }
.f-hero h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.045em; }
.f-hero .lede { max-width: 36rem; margin: 18px auto 0; color: #e5e7eb; font-size: 18px; }
.f-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
.f-btn:hover { background: var(--blue-deep); }
.f-btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; }
.f-btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.fable-home .f-trust { margin-top: 72px; color: #d1d5db; font-size: 15px; }
.fable-home .f-trust strong { color: #fff; font-family: Arial, sans-serif; font-weight: 700; }
.f-stage {
  position: relative;
  height: 540px;
  width: min(896px, 100%);
  margin: 64px auto 0;
  text-align: left;
}
.f-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.f-card.side {
  position: absolute;
  top: 40px;
  width: 300px;
  padding: 16px;
  background: var(--card-2);
}
.f-card.side.left { left: 0; }
.f-card.side.right { right: 0; top: 32px; width: 280px; }
.f-card.center { position: relative; z-index: 2; width: min(448px, 100%); margin: 0 auto; padding: 16px; }
.who { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.who strong { display: block; font-size: 15px; }
.who span, .mini, .case-row p, .cmd span, .doc-copy p, .note-card p { color: var(--dim); font-size: 13px; }
.stat {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.stat b { display: block; color: #f5d76e; font-size: 15px; }
.stat.ban b { color: #f0a0a0; }
.icon-row { display: flex; gap: 8px; margin-top: 12px; }
.icon-row span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a2a33;
  color: #e5e7eb;
  font-size: 14px;
}
.icon-row span.danger { background: #3a2428; color: #f0a0a0; }
.icon-row svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.field span { color: var(--dim); }
.search-row { display: flex; gap: 8px; margin-bottom: 6px; }
.search-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  font: 14px "DM Sans", Inter, sans-serif;
}
.search-row button, .f-card.side.right > button {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #2a2a32;
  color: #fff;
  font: 600 14px "DM Sans", Inter, sans-serif;
}
.f-card.side.right > button { width: 100%; margin-top: 14px; background: var(--blue); border-color: var(--blue); }
.settings-title { margin: 0 0 8px; font-weight: 600; }
.f-card.side.right label { display: block; margin-top: 10px; color: var(--dim); font-size: 13px; }
.f-card.side.right input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  margin-top: 6px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  font: 14px "DM Sans", Inter, sans-serif;
}
.case-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.case-row strong { display: block; font-size: 14px; }
.case-row p { margin-top: 2px; }
.pill {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #3a3018;
  color: #f5d76e;
  font-size: 11px;
  font-weight: 700;
}
.pill.timeout { background: #3a2428; color: #ffb4b4; }
.pill.kick { background: #3a2a18; color: #f6c48a; }
.pill.ban { background: #3a1c1c; color: #ff8a8a; }
.edit {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='1.8'%3E%3Cpath d='M4 20h4l10-10-4-4L4 16v4z'/%3E%3C/svg%3E") center / 14px no-repeat;
  flex: none;
}
.f-tools { padding: 72px 0 24px; scroll-margin-top: 24px; }
.cmd-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-bottom: 18px; }
.cmd-tabs button {
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #fff;
  font: 600 15px/1.2 "DM Sans", Inter, sans-serif;
  cursor: pointer;
}
.cmd-tabs button span { margin-left: 0.45em; font-weight: 600; }
.cmd-tabs button.is-active { border-bottom-color: #fff; }
.cmd-board {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: #14141c;
  padding: 16px;
}
.cmd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.cmd-grid .cmd-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1c24;
}
.cmd-grid .cmd-card code {
  display: block;
  color: #ffb4b4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}
.cmd-grid .cmd-card span { display: block; margin-top: 6px; color: #c5c8d0; font-size: 14px; }
.cmd-card[hidden],
.cmd-empty[hidden] { display: none; }
.cmd-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 0;
  color: #d1d5db;
  font-size: 16px;
}
@media (max-width: 720px) {
  .cmd-grid { grid-template-columns: 1fr; }
}
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
.filters button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: #e5e7eb;
  font: 500 14px/1 "DM Sans", Inter, sans-serif;
  cursor: pointer;
}
.filters button.is-active { background: #3a1616; border-color: #ff5a5a; color: #ffd0d0; }
.tool-panel { border: 1px solid var(--line); border-radius: 16px; background: #101017; padding: 8px 22px 16px; }
.cmd { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.tool-panel .cmd:first-child { border-top: 0; }
.cmd code {
  flex: none;
  min-width: 11rem;
  color: #ffb4b4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}
.cmd[hidden] { display: none; }
.f-news { padding: 80px 0 40px; text-align: center; }
.kicker { color: #ff6b6b; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.f-news h2, .doc-head h1, .cmd-head h1 { font-size: clamp(32px, 4vw, 40px); margin-top: 12px; }
.f-news .lede, .doc-head p, .cmd-head p { margin-top: 12px; color: #e5e7eb; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; text-align: left; }
.note-card { display: block; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: #101017; }
.note-card h3 { font-size: 20px; margin-bottom: 8px; }
.f-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
.f-foot .f-wrap { display: flex; align-items: center; gap: 22px; }
.f-foot nav { display: flex; gap: 18px; margin-left: auto; }
.f-foot a:hover { color: #fff; }
.doc-layout, .cmd-page { padding: 24px 0 80px; }
.doc-head, .cmd-head { margin-bottom: 36px; }
.doc-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.doc-side { position: sticky; top: 24px; }
.doc-side p { margin: 22px 0 8px; color: #9ca3af; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.doc-side button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: 0;
  border-left: 2px solid transparent;
  background: none;
  color: #d1d5db;
  font: 500 15px/1.4 "DM Sans", Inter, sans-serif;
  cursor: pointer;
}
.doc-side button.is-active { border-left-color: var(--blue); color: #fff; }
.doc-copy h2 { font-size: 36px; }
.doc-copy p { margin-top: 14px; color: #e5e7eb; font-size: 16px; max-width: 40rem; }
.doc-copy[hidden] { display: none; }
.group { margin-top: 36px; }
.group h2 { font-size: 28px; }
.group > p { margin: 8px 0 12px; color: var(--dim); }
.cmd-search {
  width: min(420px, 100%);
  height: 44px;
  margin: 20px 0 8px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #101017;
  color: #fff;
  font: 15px "DM Sans", Inter, sans-serif;
}
.closing { margin-top: 64px; text-align: center; }
.closing h2 { font-size: 32px; }
.closing p { margin: 10px 0 18px; color: var(--dim); }
@media (max-width: 980px) {
  .f-card.side { display: none; }
  .f-stage { height: auto; }
  .doc-grid, .notes { grid-template-columns: 1fr; }
  .doc-side { position: static; }
}
@media (max-width: 720px) {
  .f-menu {
    display: inline-flex;
    margin-left: auto;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #111;
    color: #fff;
    font: 14px "DM Sans", Inter, sans-serif;
  }
  .f-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #111;
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .f-nav.is-open { display: flex; }
  .f-nav a { padding: 10px 8px; }
  .cmd { flex-direction: column; gap: 4px; }
  .cmd code { min-width: 0; }
  .f-foot .f-wrap { flex-wrap: wrap; }
  .f-foot nav { margin-left: 0; width: 100%; }
}
.team-page { padding: 48px 0 88px; }
.team-head { text-align: center; margin-bottom: 28px; }
.team-head h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.05; }
.team-category { margin-top: 42px; }
.team-category h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--category-color, var(--blue));
  font-size: 22px;
  letter-spacing: -0.03em;
}
.team-category--core { --category-color: #e57373; }
.team-category--development { --category-color: #ff3030; }
.team-category--management { --category-color: #a855f7; }
.team-category--staff { --category-color: #3b82f6; }
.team-category--qa { --category-color: #39ff14; }
.team-category h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.team-grid {
  --team-card: calc((100% - 32px) / 3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.team-card {
  box-sizing: border-box;
  flex: 0 0 var(--team-card);
  width: var(--team-card);
  max-width: var(--team-card);
  padding: 28px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #14141c;
  text-align: center;
}
.team-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
}
.team-name { margin-top: 14px; font-weight: 700; font-size: 15px; }
.team-name a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.team-role { margin-top: 4px; color: #ffb4b4; font-size: 14px; font-weight: 600; }
.team-role--core { color: #e57373; }
.team-role--development { color: #ff3030; }
.team-role--management { color: #a855f7; }
.team-role--support { color: #3b82f6; }
.team-role--senior-support { color: #2563eb; }
.team-role--qa { color: #39ff14; }
.team-bio { margin-top: 10px; color: var(--dim); font-size: 14px; }
.team-empty {
  margin: 0 auto;
  max-width: 28rem;
  padding: 28px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #14141c;
  color: #d1d5db;
  text-align: center;
}
@media (max-width: 900px) {
  .team-grid { --team-card: calc((100% - 16px) / 2); }
}
@media (max-width: 640px) {
  .team-grid { --team-card: 100%; }
}
body.fable-home.login-page {
  min-height: 100vh;
  background: #000 url("../assets/login-haikei.svg") center / cover no-repeat fixed;
}
.login-stage {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 48px 16px;
}
.login-stack { width: min(400px, 100%); text-align: center; }
.login-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}
.login-card {
  margin-top: 18px;
  padding: 28px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(16, 16, 22, 0.92);
}
.login-card h1 { font-size: 28px; }
.fable-home .login-card #login-status { margin-top: 10px; color: var(--dim); font-size: 14px; }
.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 46px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
.discord-btn:hover { background: var(--blue-deep); }
.discord-btn img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #3a1c1c;
  color: #ffb4b4;
  text-align: left;
}
.login-error .site-alert-mark { width: 18px; height: 18px; flex: none; color: #ff8a8a; }
.login-error .site-alert-mark svg { width: 18px; height: 18px; display: block; }
.login-error .site-alert-copy { display: grid; gap: 2px; }
.login-error .site-alert-title { font-weight: 700; color: #fff; font-size: 14px; }
.login-error .site-alert-desc { color: #ffd0d0; font-size: 13px; }
.fable-home .login-legal { margin-top: 16px; color: var(--dim); font-size: 13px; }
.login-legal a { text-decoration: underline; text-underline-offset: 3px; }
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(640px, calc(100% - 40px));
  margin: 28px auto 0;
}
.board-back {
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
}
.board-back:hover { color: #fff; }
.board {
  width: min(640px, calc(100% - 40px));
  margin: 36px auto 80px;
}
.board-all,
.board-group,
.board-notice,
.board-past {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #141418;
}
.board-all {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  font-weight: 600;
}
.board-all::before,
.mark {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3b3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.board-all[data-state="down"]::before,
.board-row[data-state="down"] .mark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E");
}
.board-all[data-state="degraded"]::before,
.board-row[data-state="degraded"] .mark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6c48a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}
.board-label {
  margin: 22px 0 8px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.board-group { padding: 4px 0; }
.board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.board-row + .board-row { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.board-name { font-weight: 600; }
.board-state { margin-left: auto; color: #d1d5db; font-size: 14px; }
.board-row[data-state="down"] .board-state { color: #ffb4b4; }
.board-row[data-state="degraded"] .board-state { color: #f6c48a; }
.fable-home .board-notice {
  margin-top: 14px;
  padding: 16px;
  color: #9ca3af;
  text-align: center;
}
.board-history {
  display: block;
  margin: 18px auto 0;
  border: 0;
  background: none;
  color: #fff;
  font: 600 14px "DM Sans", Inter, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.fable-home .board-past { margin-top: 14px; padding: 16px; text-align: center; color: #9ca3af; }
.board-past[hidden] { display: none; }
