:root {
  --bg: #090d16;
  --bg-elev: #111827;
  --bg-card: #151e2e;
  --bg-box: #0d1320;
  --bg-hover: #1d293d;
  --border: #243248;
  --border-strong: #344766;
  --text: #f1f5f9;
  --text-sub: #cbd5e1;
  --text-muted: #8b9bb4;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.14);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.14);
  --purple: #c084fc;
  --purple-soft: rgba(192, 132, 252, 0.14);
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, 0.14);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.14);
  --radius: 14px;
  --radius-sm: 9px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: radial-gradient(circle at top center, #131c2e 0%, var(--bg) 42%);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 72px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(148, 163, 184, 0.12);
  padding: 2px 6px;
  border-radius: 5px;
  color: #e2e8f0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ================= HEADER & NAV ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.btn-hamburger {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-hamburger:hover { background: var(--bg-hover); border-color: var(--border-strong); }

.brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-title:hover { text-decoration: none; color: var(--accent); }
.brand-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-actions::-webkit-scrollbar { display: none; }

.btn-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: rgba(30, 41, 59, 0.72);
  color: #e2e8f0;
  font-size: 0.81rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-top:hover { background: var(--bg-hover); border-color: #475569; text-decoration: none; color: #fff; }
.btn-top.primary {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.62);
  color: #fde68a;
}

.btn-quick-drawer {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: var(--accent-soft);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.btn-quick-drawer:hover {
  background: rgba(245, 158, 11, 0.24);
}
.quick-arrow {
  font-size: 0.95rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .topbar-inner {
    padding: 9px 12px;
    gap: 8px;
  }
  .topbar-left {
    gap: 7px;
  }
  .btn-hamburger {
    padding: 6px 9px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .brand-title {
    font-size: 0.94rem;
    gap: 6px;
    min-width: 0;
  }
  .brand-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    flex-shrink: 0;
  }
  .topbar-actions {
    display: none;
  }
  .btn-quick-drawer {
    display: inline-flex;
  }
}
@media (max-width: 359px) {
  .brand-badge {
    display: none;
  }
}

/* Sidebar Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  z-index: 80;
  display: none;
}
.drawer-backdrop.open { display: block; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  z-index: 90;
  padding: 18px 16px 32px;
  overflow-y: auto;
  transform: translateX(-104%);
  transition: transform 0.2s ease;
}
.sidebar.open { transform: translateX(0); }

.sidebar.sidebar-right {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border);
  transform: translateX(104%);
}
.sidebar.sidebar-right.open {
  transform: translateX(0);
}
.btn-switch-drawer {
  margin-top: 18px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-sub);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.btn-switch-drawer:hover {
  background: var(--bg-hover);
  color: #fff;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-header h2 { font-size: 1rem; font-weight: 800; }
.btn-close-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

[data-group="routine"] { --cat-color: #fb7185; }
[data-group="collab"]  { --cat-color: #f472b6; }
[data-group="seasons"] { --cat-color: #38bdf8; }
[data-group="economy"] { --cat-color: #10b981; }
[data-group="classes"] { --cat-color: #fbbf24; }
[data-group="growth"]  { --cat-color: #c084fc; }
[data-group="etc"]     { --cat-color: #94a3b8; }

.nav-group {
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.sidebar > .nav-group:first-of-type {
  padding-top: 0;
  border-top: none;
}
.nav-group-label {
  font-size: 0.94rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
  padding: 3px 8px 3px 10px;
  border-left: 4px solid var(--cat-color, var(--accent));
}
.nav-group.is-active .nav-group-label {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.09), transparent);
  border-radius: 0 6px 6px 0;
}
.nav-now-dot {
  color: var(--cat-color, #fbbf24);
  font-size: 0.78rem;
  font-weight: 900;
  margin-left: 3px;
}
.nav-depth2-list { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 6px 12px;
  border-radius: 7px;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-link:hover { background: var(--bg-hover); color: #fff; text-decoration: none; }
.nav-link.active { background: rgba(245, 158, 11, 0.18); color: #fde68a; font-weight: 800; }

/* ================= PAGE HERO & BANNERS ================= */
.page-hero {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-cat-line {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 1px 0 1px 10px;
  border-left: 4px solid var(--cat-color, var(--accent));
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--text-sub);
  text-decoration: none;
}
a.hero-cat-line:hover {
  color: #fff;
  text-decoration: none;
}
.page-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.page-hero-title {
  font-size: clamp(1.38rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}
.page-hero-sub {
  color: var(--text-sub);
  font-size: 0.93rem;
}
.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Truthful Source Badges */
.src-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.src-global { background: var(--blue-soft); color: var(--blue); border-color: rgba(56, 189, 248, 0.3); }
.src-kr { background: var(--green-soft); color: var(--green); border-color: rgba(16, 185, 129, 0.3); }
.src-warn { background: var(--red-soft); color: var(--red); border-color: rgba(251, 113, 133, 0.3); }
.src-accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(245, 158, 11, 0.3); }
.src-purple { background: var(--purple-soft); color: var(--purple); border-color: rgba(192, 132, 252, 0.3); }

/* ================= PANELS & GRIDS ================= */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.panel-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
}
.panel-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.notice-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.86rem;
  color: #fde68a;
  margin-bottom: 14px;
}
.notice-box.danger {
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.3);
  color: #fecdd3;
}
.notice-box.info {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Home Directory & Quick Cards */
.search-box {
  position: relative;
  margin-bottom: 18px;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.96rem;
  outline: none;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}
.search-input::placeholder { color: var(--text-muted); }

.home-tree-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 700px) {
  .home-tree-grid { grid-template-columns: 1fr; }
}

.home-tree-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.home-depth1 {
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  padding: 2px 0 2px 12px;
  border-left: 4px solid var(--cat-color, var(--accent));
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.hub-card.is-collab {
  border-color: rgba(244, 114, 182, 0.52);
  background: linear-gradient(160deg, rgba(244, 114, 182, 0.14), var(--bg-card));
}
.hub-card.is-collab .hub-card-kicker { color: #f9a8d4; }
.home-depth2-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.home-depth2-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.home-depth2-item:hover {
  border-color: var(--blue);
  background: var(--bg-hover);
  text-decoration: none;
}
.home-depth2-title { font-size: 0.91rem; font-weight: 800; color: #f8fafc; }
.home-depth2-desc { font-size: 0.78rem; color: #94a3b8; line-height: 1.45; }

/* ================= TABS & FILTER CONTROLS ================= */
.section-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.section-jumps a {
  background: var(--bg-box);
  border: 1px solid var(--border);
  color: var(--text-sub);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.section-jumps a:hover,
.section-jumps a.active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue-soft);
}

.segmented-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-box);
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: 11px;
  margin-bottom: 14px;
}
.segmented-tabs button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
}
.segmented-tabs button[aria-selected="true"],
.segmented-tabs button.active {
  background: var(--accent);
  color: #090d16;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.filter-select, .filter-input {
  background: var(--bg-box);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.85rem;
}
.filter-input { flex: 1; min-width: 180px; }
.filter-select:focus, .filter-input:focus { outline: none; border-color: var(--blue); }

.pill-btn {
  background: var(--bg-box);
  border: 1px solid var(--border);
  color: var(--text-sub);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.pill-btn:hover { border-color: var(--border-strong); color: #fff; }
.pill-btn.active {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

/* ================= TABLES ================= */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-box);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}
th, td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-sub);
  font-weight: 800;
  font-size: 0.79rem;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* ================= GUIDE CARDS & BUILDS ================= */
.guide-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.guide-card + .guide-card {
  margin-top: 16px;
}
.guide-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.card-title { font-size: 1.03rem; font-weight: 800; color: #fff; }
.guide-summary { font-size: 0.86rem; color: var(--text-sub); margin-bottom: 10px; }

.tldr-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.tldr-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.88rem;
  color: var(--text-sub);
}
.tldr-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 900;
}

.build-block {
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 10px;
}
.build-name {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 8px;
}
.build-sub { font-size: 0.79rem; font-weight: 600; color: var(--text-muted); }

.slot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.slot-type {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 44px;
}
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
}
.skill-chip.core { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.1); color: #fde68a; }
.skill-chip.passive { border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.1); color: #bae6fd; }
.skill-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.skill-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.skill-table-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.spec-item {
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.spec-label { font-size: 0.75rem; font-weight: 800; color: var(--text-muted); margin-bottom: 4px; }
.spec-val { font-size: 0.87rem; font-weight: 600; color: var(--text); }

.spec-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.spec-section-card {
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.spec-section-head {
  font-size: 0.94rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.spec-section-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text);
}
.spec-section-list li strong {
  color: var(--text-muted);
  font-weight: 700;
  margin-right: 6px;
}

/* ================= CLASS STEPS & TIER PYRAMID ================= */
.class-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  list-style: none;
  margin-top: 10px;
}
.class-steps li {
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.class-steps li span { font-size: 0.72rem; color: var(--text-muted); font-weight: 800; }
.class-steps li strong { font-size: 0.88rem; color: #fff; }
.class-steps li small { font-size: 0.74rem; color: var(--accent); font-weight: 700; }

.tier-pyramid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.tier-layer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.tier-rank {
  min-width: 48px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 4px 6px;
  border-radius: 6px;
}
.tier-layer[data-rank="S"] .tier-rank,
.tier-layer[data-rank="T0"] .tier-rank { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.tier-layer[data-rank="T0.5"] .tier-rank { background: rgba(251, 113, 133, 0.18); color: #fda4af; }
.tier-layer[data-rank="A"] .tier-rank,
.tier-layer[data-rank="T1"] .tier-rank { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
.tier-layer[data-rank="B"] .tier-rank,
.tier-layer[data-rank="T2"] .tier-rank { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
.tier-layer[data-rank="C"] .tier-rank,
.tier-layer[data-rank="T3"] .tier-rank,
.tier-layer[data-rank="T4"] .tier-rank,
.tier-layer[data-rank="T5"] .tier-rank { background: rgba(148, 163, 184, 0.14); color: var(--text-muted); }

.tier-classes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tier-classes li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tier-classes li.branch-knight   { border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.08); }
.tier-classes li.branch-duelist  { border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.08); }
.tier-classes li.branch-sorcerer { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.08); }
.tier-classes li.branch-sage     { border-color: rgba(192, 132, 252, 0.35); background: rgba(192, 132, 252, 0.08); }
.tier-class-link {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tier-class-link:hover { text-decoration: none; opacity: 0.92; }
.lineage-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.45;
  white-space: nowrap;
}
.lineage-tag.knight   { background: rgba(56, 189, 248, 0.2);  color: #7dd3fc; }
.lineage-tag.duelist  { background: rgba(251, 113, 133, 0.2); color: #fda4af; }
.lineage-tag.sorcerer { background: rgba(245, 158, 11, 0.2);  color: #fcd34d; }
.lineage-tag.sage     { background: rgba(192, 132, 252, 0.2); color: #d8b4fe; }
.lineage-tag.base     { background: rgba(148, 163, 184, 0.16); color: var(--text-sub); }

/* ================= GROWTH SLOTS & DIAGRAMS ================= */
.growth-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 10px 0;
}
@media (max-width: 560px) {
  .growth-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.growth-slot {
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.growth-slot.featured-slot {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
}
.growth-slot span { font-size: 0.76rem; color: var(--text-muted); font-weight: 700; }
.growth-slot strong { font-size: 1.15rem; color: #fff; font-weight: 900; }

/* ================= COUPONS ================= */
.progress-bar {
  height: 8px;
  background: var(--bg-box);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 10px 0 12px;
}
.progress-fill { height: 100%; background: var(--green); transition: width 0.2s ease; }

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
}
.coupon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
}
.coupon-card.is-new { border-color: rgba(245, 158, 11, 0.55); }
.coupon-card.used { opacity: 0.52; }
.coupon-left { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; min-width: 0; }
.coupon-code { font-family: ui-monospace, monospace; font-size: 0.95rem; font-weight: 800; color: #fff; }
.coupon-desc { font-size: 0.78rem; color: var(--text-muted); }
.btn-copy {
  background: var(--blue-soft);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--blue);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

/* ================= CALENDAR & ROADMAP ================= */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}
.cal-weekday {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 4px 0;
}
.cal-cell {
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  min-height: 70px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cal-cell:hover { border-color: var(--border-strong); }
.cal-cell.selected { border-color: var(--blue); background: rgba(56, 189, 248, 0.1); }
.cal-cell.today { box-shadow: inset 0 0 0 1px var(--accent); }
.cal-cell.is-disabled { opacity: 0.42; cursor: default; pointer-events: none; }
.cal-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-date { font-size: 0.76rem; font-weight: 800; }
.cal-day-tag { font-size: 0.68rem; color: var(--text-muted); }
.cal-marker {
  font-size: 0.67rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-marker.amber { background: var(--accent-soft); color: #fbbf24; }
.cal-marker.red { background: var(--red-soft); color: #fda4af; }

.day-input {
  background: var(--bg-box);
  border: 1px solid var(--border-strong);
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ================= SEASON TARGET GRID ================= */
.season-target-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
}
.season-target-grid > li {
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.season-target-grid > li > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
.target-steps { display: flex; flex-direction: column; gap: 7px; }
.target-steps > div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 9px;
}
.target-steps > div > span:first-child { font-size: 0.72rem; color: var(--text-muted); display: block; }
.target-steps strong { font-size: 1.05rem; color: #fff; }
.target-steps small { font-size: 0.75rem; margin-left: 2px; color: var(--text-muted); }
.target-reward { display: block; font-size: 0.78rem; color: var(--green); font-weight: 700; }

/* ================= DB CARDS ================= */
.db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.db-card {
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.db-card-title { font-size: 0.92rem; font-weight: 800; color: #fff; }
.db-card-sub { font-size: 0.78rem; color: var(--text-muted); }
.db-card-body { font-size: 0.82rem; color: var(--text-sub); }
.db-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

/* ================= FOOTER & TOAST ================= */
.site-footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-disclaimer {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  opacity: 0.9;
}
.ref-site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 960px) {
  .ref-site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ref-site-grid { grid-template-columns: 1fr; }
}
.ref-site-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-box);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.ref-site-card:hover {
  border-color: var(--blue);
  background: var(--bg-hover);
  transform: translateY(-1px);
  text-decoration: none;
}
.ref-site-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ref-site-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ref-site-icon-wrap.is-light-bg {
  background: #f8fafc;
}
.ref-site-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
}
.ref-site-title-wrap {
  flex: 1;
  min-width: 0;
}
.ref-site-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  word-break: keep-all;
}
.ref-site-ext {
  color: var(--blue);
  font-size: 0.85em;
}
.ref-site-domain {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ref-site-desc {
  margin: 0;
  font-size: 0.81rem;
  color: var(--text-sub);
  line-height: 1.5;
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #10b981;
  color: #052e16;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 120;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

mark {
  background: rgba(245, 158, 11, 0.32);
  color: #fff;
  padding: 0 2px;
  border-radius: 3px;
}

/* ================= VISUAL HIERARCHY & SCANNABLE UI ================= */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 860px) { .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpi-row { grid-template-columns: 1fr; } }

.kpi-card {
  background: linear-gradient(180deg, rgba(24, 34, 52, 0.96), var(--bg-card));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-card.is-primary {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), var(--bg-card));
}
.kpi-card.is-warn {
  border-color: rgba(251, 113, 133, 0.45);
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.08), var(--bg-card));
}
.kpi-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
}
.kpi-val {
  font-size: 1.32rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.kpi-card.is-primary .kpi-val { color: #fbbf24; }
.kpi-card.is-warn .kpi-val { color: #fda4af; }
.kpi-sub {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 760px) { .action-grid { grid-template-columns: 1fr; } }

.action-card {
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.action-card.prio-must { border-left-color: var(--accent); background: rgba(245, 158, 11, 0.05); }
.action-card.prio-tip  { border-left-color: var(--blue);   background: rgba(56, 189, 248, 0.04); }
.action-card.prio-warn { border-left-color: var(--red);    background: rgba(251, 113, 133, 0.06); }
.action-card.prio-ok   { border-left-color: var(--green);  background: rgba(16, 185, 129, 0.05); }

.action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.action-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
}
.action-one {
  font-size: 0.91rem;
  color: var(--text);
  line-height: 1.55;
}

.prio-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.prio-pill.must { background: rgba(245, 158, 11, 0.18); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.4); }
.prio-pill.tip  { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.35); }
.prio-pill.warn { background: rgba(251, 113, 133, 0.18); color: #fda4af; border: 1px solid rgba(251, 113, 133, 0.4); }
.prio-pill.ok   { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }

.detail-fold {
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--text-sub);
}
.detail-fold summary {
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.detail-fold summary:hover { color: var(--blue); }
.detail-fold[open] summary { margin-bottom: 6px; color: var(--blue); }
.detail-fold .fold-body {
  padding: 8px 10px;
  background: rgba(9, 13, 22, 0.65);
  border: 1px solid var(--border);
  border-radius: 7px;
  line-height: 1.55;
}

/* Interactive Daily Checklist */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 760px) { .checklist-grid { grid-template-columns: 1fr; } }

.checklist-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-box);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}
.checklist-row:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.checklist-row.is-must { border-left: 4px solid var(--accent); }
.checklist-row.is-done {
  opacity: 0.56;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.05);
}
.checklist-row.is-done .cl-title { text-decoration: line-through; color: var(--text-muted); }
.checklist-row input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--green);
  flex-shrink: 0;
  cursor: pointer;
}
.cl-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cl-desc {
  font-size: 0.83rem;
  color: var(--text-sub);
  margin-top: 2px;
}

/* Home Hero Quick Hub Cards */
.hub-hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 900px) { .hub-hero-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hub-hero-cards { grid-template-columns: 1fr; } }

.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-box));
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--bg-hover);
  text-decoration: none;
}
.hub-card.is-highlight {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.14), var(--bg-card));
}
.hub-card-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
}
.hub-card-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
}
.hub-card-desc {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.45;
}
.hub-card-cta {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue);
}

/* ================= 1-DEPTH + ㄴ 2-DEPTH TREE ================= */
.tree-branch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-left: 1.5px solid #64748b;
  border-bottom: 1.5px solid #64748b;
  margin-right: 8px;
  transform: translateY(-2px);
  flex-shrink: 0;
}
.nav-link:hover .tree-branch,
.nav-link.active .tree-branch,
.home-depth2-item:hover .tree-branch {
  border-color: var(--accent);
}
.home-depth2-title {
  display: flex;
  align-items: center;
}

/* ================= VISUAL BANNERS & DIAGRAMS ================= */
.hero-banner-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
  min-height: 170px;
  background: linear-gradient(120deg, #0f172a 0%, #1e293b 100%);
}
.hero-banner-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  opacity: 0.72;
}
@media (max-width: 640px) {
  .hero-banner-img { height: 165px; }
}
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 13, 22, 0.94) 0%, rgba(9, 13, 22, 0.68) 55%, rgba(9, 13, 22, 0.24) 100%);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.visual-banner-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b111c;
  margin-bottom: 14px;
}
.visual-banner-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.visual-banner-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 7px 12px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 12px 0 16px;
}
.shot-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0b111c;
}
.shot-card img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 8px;
}
.shot-cap {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.45;
  padding: 9px 12px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
}
.shot-cap strong { color: #fbbf24; }

/* Harmonized Side-by-Side Feature Split (Image beside its exact explanation) */
.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-split {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: var(--bg-box);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.feature-split.is-wide-media {
  grid-template-columns: 280px minmax(0, 1fr);
}
.split-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b111c;
}
.split-media img {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  display: block;
}
.split-media.is-sprite {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.14), rgba(11, 17, 28, 0.96) 72%);
  padding-top: 18px;
}
.split-media.is-sprite img {
  width: 142px;
  max-width: 100%;
  height: auto;
  max-height: 148px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}
.split-media.is-sprite .split-cap {
  width: 100%;
}
.boss-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.boss-mini-grid.is-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  margin-bottom: 14px;
}
.boss-mini-card {
  background: var(--bg-box);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.boss-mini-card.is-pet {
  background: radial-gradient(circle at 50% 38%, rgba(56, 189, 248, 0.14), rgba(11, 17, 28, 0.96) 72%);
  padding: 16px 12px 14px;
}
.boss-mini-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}
.boss-mini-card.is-pet img {
  width: 112px;
  height: 112px;
}
.boss-mini-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}
.boss-mini-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .boss-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.split-cap {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  padding: 5px 8px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
}
.split-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.split-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.concise-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.91rem;
  color: var(--text-sub);
  line-height: 1.58;
}
.concise-list strong { color: #fff; }
.action-grid.is-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .feature-split,
  .feature-split.is-wide-media {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .split-media img {
    max-height: 240px;
  }
  .action-grid.is-3col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .table-wrap.has-mobile-cards {
    border: none;
    background: transparent;
    overflow-x: visible;
  }
  table.mobile-cards,
  table.mobile-cards tbody,
  table.mobile-cards tr,
  table.mobile-cards td {
    display: block;
    width: 100%;
  }
  table.mobile-cards thead {
    display: none;
  }
  table.mobile-cards tr {
    background: var(--bg-box);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
  }
  table.mobile-cards tr:last-child {
    margin-bottom: 0;
  }
  table.mobile-cards td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.5;
  }
  table.mobile-cards td[data-label] {
    display: block;
    position: relative;
    padding: 8px 12px 8px 102px;
    min-height: 36px;
  }
  table.mobile-cards td:last-child {
    border-bottom: none;
  }
  table.mobile-cards td:first-child {
    display: block;
    background: rgba(30, 41, 59, 0.78);
    font-size: 0.92rem;
    padding: 9px 12px;
  }
  table.mobile-cards td[data-label]::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    top: 9px;
    width: 82px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.76rem;
    line-height: 1.4;
  }
}
.visual-diagram-box {
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow-x: auto;
  margin-top: 10px;
}
.visual-diagram-box svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 500px;
}

/* ================= RESPONSIVE ROADMAP (PC CALENDAR / MOBILE SWIPER) ================= */
.cal-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.cal-desktop-wrap { display: block; }
.cal-mobile-wrap  { display: none; }

@media (max-width: 768px) {
  .cal-desktop-wrap { display: none; }
  .cal-mobile-wrap  { display: block; }
}
.cal-force-desktop .cal-desktop-wrap { display: block !important; }
.cal-force-desktop .cal-mobile-wrap  { display: none !important; }
.cal-force-mobile  .cal-desktop-wrap { display: none !important; }
.cal-force-mobile  .cal-mobile-wrap  { display: block !important; }

.sxs-season-jump-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px;
  scrollbar-width: none;
}
.sxs-season-jump-bar::-webkit-scrollbar { display: none; }

.sxs-swiper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sxs-swiper-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px;
}
.sxs-swiper-track::-webkit-scrollbar { height: 6px; }
.sxs-swiper-track::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.28); border-radius: 999px; }

.sxs-swiper-card {
  flex: 0 0 162px;
  scroll-snap-align: start;
  min-height: 158px;
  background: var(--bg-box);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.sxs-swiper-card.today {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}
.sxs-swiper-card.selected {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.09);
}
.sxs-swiper-card.season-start {
  border-color: #38bdf8;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.14), var(--bg-box));
}
.sxs-swiper-card.season-eve {
  border-color: #f87171;
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.15), var(--bg-box));
}
.sxs-sw-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.sxs-sw-day { font-size: 0.95rem; font-weight: 900; color: #fff; }
.sxs-sw-date { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; }
.sxs-sw-season { font-size: 0.76rem; font-weight: 800; color: var(--accent); }
.sxs-sw-note { font-size: 0.78rem; color: var(--text-sub); line-height: 1.4; }

/* Inline cropped resource icons (from user screenshots) */
.res-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
}
.res-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.res-icon.sm {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  vertical-align: -5px;
  margin-right: 5px;
}
.res-cell-meta {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Server Start Date Onboarding Modal */
html.sxs-modal-open,
body.sxs-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.sxs-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(9, 13, 22, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  overscroll-behavior: contain;
}
.sxs-modal-backdrop[hidden] {
  display: none !important;
}
.sxs-modal-card {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}
.sxs-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.sxs-modal-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
}
.sxs-modal-desc {
  font-size: 0.87rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 14px;
}
.sxs-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.sxs-modal-field span {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
}
.sxs-modal-field .day-input {
  width: 100%;
  min-height: 40px;
  color-scheme: dark;
}
.sxs-modal-error {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  min-height: 1.2em;
  margin-bottom: 10px;
}
.sxs-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}
.btn-primary-action {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #090d16;
  border: 1px solid rgba(251, 191, 36, 0.6);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn-primary-action:hover {
  filter: brightness(1.08);
}
.btn-primary-action:active {
  transform: translateY(1px);
}

/* Calendar Day Detail Layer Popup & Extra Markers */
.cal-marker.teal { background: var(--teal-soft); color: var(--teal); }
.cal-marker.blue { background: var(--blue-soft); color: var(--blue); }
.cal-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 4px;
}
.cal-cell-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.cal-zoom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.sxs-swiper-card .cal-zoom-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.02rem;
}
.cal-zoom-icon:hover,
.cal-zoom-icon:focus-visible {
  background: rgba(56, 189, 248, 0.34);
  border-color: var(--blue);
  transform: scale(1.08);
  outline: none;
}
.cal-zoom-icon:active {
  transform: scale(0.96);
}

.sxs-modal-card.is-day-detail {
  max-width: 520px;
  max-height: min(84vh, 560px);
  max-height: min(84dvh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sxs-day-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  margin-bottom: 10px;
}
.sxs-day-modal-scroll::-webkit-scrollbar {
  width: 6px;
}
.sxs-day-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}
.sxs-modal-close-icon {
  background: var(--bg-box);
  border: 1px solid var(--border-strong);
  color: var(--text-sub);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sxs-modal-close-icon:hover {
  background: var(--bg-hover);
  color: #fff;
}
.sxs-day-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.sxs-day-modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sxs-day-detail-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.sxs-day-detail-item {
  background: var(--bg-box);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.sxs-day-detail-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.sxs-day-detail-text {
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.5;
}
.sxs-day-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.81rem;
  margin-bottom: 12px;
}
