/* */
/* Fatesend 2025 Theme */
:root {
  /* Neutral grayscale palette */
  --fs-bg: #0f1115;                 /* page background */
  --fs-surface: rgba(24, 27, 33, .72);     /* header glass */
  --fs-surface-opaque: #181b21;     /* dropdowns/cards */
  --fs-border: rgba(148, 163, 184, 0.14);
  --fs-text: #e5e7eb;               /* primary text on gray */
  --fs-muted: #a3aab7;              /* muted text */
  /* brand accents add a subtle hint of color */
  --fs-accent: #7c5cff;             /* violet */
  --fs-accent-2: #22d3ee;           /* cyan */
  --fs-danger: #ef4444;
  --fs-radius: 12px;
  --fs-shadow: 0 10px 20px rgba(2, 6, 23, 0.4);
  --fs-footer-h: 64px;
  --fs-header-h: 64px; /* header height for layout calculations */
  --fs-header-b: 1px;  /* header bottom border */
  --fs-footer-b: 1px;  /* footer top border */
}

html, body { height: 100%; }
body {
  margin: 0;
  /* neutral background */
  background: var(--fs-bg);
  color: var(--fs-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  /* Footer space handled by .fs-main to avoid unwanted scroll on short pages */
  padding-bottom: 0;
}

.fs-container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Header */
.fs-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  background: var(--fs-surface);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.fs-header.scrolled {
  border-color: var(--fs-border);
  box-shadow: var(--fs-shadow);
  background: rgba(17, 22, 29, 0.85);
}
.fs-header .fs-container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.fs-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fs-text);
}
.fs-brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fs-accent), var(--fs-accent-2));
  color: #fff;
  font-weight: 800;
  letter-spacing: .6px;
  font-size: 14px;
  box-shadow: 0 6px 22px rgba(124,92,255,.25), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.fs-brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.25) 10%, rgba(255,255,255,0) 40%);
  transform: translateX(-120%);
  animation: fsShine 4s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
.fs-brand-mark::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 14px;
  background: radial-gradient(40px 40px at 50% 50%, rgba(124,92,255,.25), rgba(34,211,238,.18), transparent 70%);
  filter: blur(8px);
  opacity: .55;
  pointer-events: none;
}
.fs-brand-title { font-weight: 800; letter-spacing: .3px; color: var(--fs-text); text-shadow: 0 1px 0 rgba(255,255,255,0.02), 0 8px 24px rgba(2,6,23,0.35); }

@keyframes fsShine {
  0% { transform: translateX(-140%); }
  55% { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}
.fs-brand-title { font-weight: 800; letter-spacing: .3px; color: var(--fs-text); text-shadow: 0 1px 0 rgba(255,255,255,0.02), 0 8px 24px rgba(2,6,23,0.35); }

/* Server status */
.fs-status { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-left: 16px; color: var(--fs-muted); font-weight: 600; }
.fs-status-label { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--fs-muted); }
.fs-status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15) inset, 0 0 8px rgba(0,0,0,0.15);
}
.fs-status-dot.online { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.25) inset, 0 0 10px rgba(34,197,94,0.35); }
.fs-status-dot.offline { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,0.25) inset, 0 0 10px rgba(239,68,68,0.35); }
.fs-status-text { color: var(--fs-text); }

/* Simple tooltip for fs-status */
.fs-tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  white-space: nowrap;
  background: var(--fs-surface-opaque);
  color: var(--fs-text);
  border: 1px solid var(--fs-border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  z-index: 1500;
  opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease;
}
.fs-tip[data-tip]:hover::after { opacity: 1; transform: translateY(0); }

/* Nav */
.fs-nav { margin-left: auto; }
.fs-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0; margin: 0;
}
.fs-menu-item { position: relative; }
.fs-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--fs-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  opacity: .9;
}
.fs-menu-link:hover { background: rgba(148, 163, 184, 0.10); opacity: 1; }

/* Download CTA */
.fs-menu-link.fs-download-cta {
  border: 1px solid var(--fs-border);
  background: linear-gradient(135deg, rgba(156,163,175,.18), rgba(75,85,99,.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.fs-menu-link.fs-download-cta:hover {
  background: linear-gradient(135deg, rgba(156,163,175,.24), rgba(75,85,99,.24));
}

.fs-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--fs-border);
  background: var(--fs-surface-opaque);
  list-style: none;
  box-shadow: var(--fs-shadow);
  display: none;
}
.fs-has-dropdown:hover > .fs-dropdown { display: block; }
.fs-dropdown-link {
  display: block;
  color: var(--fs-text);
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 14px;
}
.fs-dropdown-link:hover { background: rgba(148, 163, 184, 0.10); }

/* User actions */
.fs-user { display: inline-flex; align-items: center; gap: 10px; margin-left: 14px; }
.fs-user-greeting { color: var(--fs-text); opacity: .9; font-weight: 500; }
.fs-user-action {
  text-decoration: none;
  color: var(--fs-text);
  opacity: .9;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.fs-user-action:hover { background: rgba(148,163,184,.10); opacity: 1; }
.fs-user-action.primary {
  border-color: var(--fs-border);
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(14,165,233,.18));
}

.fs-server-select {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fs-muted);
}
.fs-server-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--fs-surface-opaque);
  color: var(--fs-text);
  border: 1px solid var(--fs-border);
  border-radius: 10px;
  padding: 6px 10px;
}

/* Mobile */
.fs-nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--fs-border);
  background: transparent;
}
.fs-nav-toggle-bar { display: block; height: 2px; background: var(--fs-text); margin: 7px 8px; border-radius: 1px; }

@media (max-width: 960px) {
  .fs-nav-toggle { display: inline-block; }
  .fs-nav { order: 10; width: 100%; display: none; }
  .fs-nav.is-open { display: block; }
  .fs-menu { flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 0 14px; }
  .fs-menu-link { height: auto; padding: 10px 12px; }
  .fs-has-dropdown > .fs-dropdown { position: static; display: block; border: none; background: transparent; box-shadow: none; padding: 4px 8px 8px; }
  .fs-user { margin-left: 0; order: 20; width: 100%; justify-content: flex-start; padding-bottom: 12px; }
  .fs-menu-link.fs-download-cta { text-align: center; }
}

/* Main */
.fs-main { position: relative; padding: 16px 0 24px; }
/* Ensure page fills viewport without unnecessary scrollbar on short content.
   Content box min-height excludes paddings, so subtract header+footer+top/bottom paddings. */
.fs-main {
  min-height: calc(100vh
    - (var(--fs-header-h, 64px) + var(--fs-header-b, 1px))
    - (var(--fs-footer-h, 64px) + var(--fs-footer-b, 1px))
    - 16px - 24px);
  /* Keep content readable above fixed footer incl. its border */
  padding-bottom: calc(24px + var(--fs-footer-h, 64px) + var(--fs-footer-b, 1px));
  background: url(../img/lonely.gif) right bottom / 20% no-repeat, url(../img/cat.gif) left bottom / 20% no-repeat;
}
.fs-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  padding-bottom: 20%;
  background: url(../img/spin.gif) left top / contain no-repeat;
  transform: scaleY(-1);
  pointer-events: none;
}
.message { background: rgba(56,189,248,.14); border: 1px solid rgba(56,189,248,.35); padding: 10px 12px; border-radius: 10px; }
.notice  { background: rgba(234,179,8,.14); border: 1px solid rgba(234,179,8,.35); padding: 10px 12px; border-radius: 10px; }

/* Footer */
.fs-footer { position: fixed; left: 0; right: 0; bottom: 0; height: var(--fs-footer-h, 64px); min-height: var(--fs-footer-h, 64px); z-index: 900; border-top: 1px solid var(--fs-border); background: rgba(24,27,33,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-sizing: border-box; }
.fs-footer-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fs-footer a { color: var(--fs-text); text-decoration: none; opacity: .9; }
.fs-footer a:hover { opacity: 1; text-decoration: underline; }
.fs-render { color: var(--fs-muted); margin-left: 14px; }
.fs-theme-select { color: var(--fs-muted); display: inline-flex; align-items: center; gap: 8px; }
.fs-theme-select select { background: var(--fs-surface-opaque); color: var(--fs-text); border: 1px solid var(--fs-border); border-radius: 10px; padding: 6px 10px; }

/* Ensure footer text is readable on gray */
.fs-footer, .fs-footer p, .fs-footer span, .fs-footer strong, .fs-footer .text-muted { color: var(--fs-text); }

/* Brand logo */
.fs-logo { height: 38px; width: auto; display: block; }
@media (min-width: 960px) { .fs-logo { height: 38px; } }

/* Footer niceties */
.fs-made { display: inline-flex; align-items: center; gap: 8px; }
.fs-year { color: var(--fs-muted); margin-left: 4px; }
.fs-dot { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--fs-accent), var(--fs-accent-2)); box-shadow: 0 0 8px rgba(255,255,255,0.1); }
.fs-heart { display: inline-block; opacity: .9; transform-origin: center; animation: fsPulse 3s ease-in-out infinite; }
@keyframes fsPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes fsDotGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(255,255,255,0.10);} 
  50% { transform: scale(1.1); box-shadow: 0 0 14px rgba(255,255,255,0.18);} 
}
.fs-dot { animation: fsDotGlow 3.5s ease-in-out infinite; }

/* Footer social */
.fs-social-link {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--fs-text);
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--fs-border);
  background: linear-gradient(135deg, rgba(156,163,175,.12), rgba(75,85,99,.12));
}
.fs-social-link:hover {
  background: linear-gradient(135deg, rgba(156,163,175,.18), rgba(75,85,99,.18));
}
.fs-icon { width: 18px; height: 18px; display: inline-block; }
.fs-discord .fs-icon { color: #cbd5e1; }
.fs-social-text { font-weight: 600; letter-spacing: .2px; }

/* Homepage */
.fs-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; padding: 12px 0 8px; }
@media (max-width: 960px) { .fs-hero { grid-template-columns: 1fr; } }
.fs-hero-title { font-size: 34px; line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: .2px; color: var(--fs-text); }
.fs-hero-sub { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--fs-muted); }
.fs-hero-desc { margin: 12px 0 16px; color: var(--fs-muted); max-width: 60ch; }
.fs-hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.fs-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--fs-border); color: var(--fs-text); text-decoration: none; font-weight: 600; letter-spacing: .2px; }
.fs-btn.primary { background: linear-gradient(135deg, rgba(156,163,175,.22), rgba(75,85,99,.22)); }
.fs-btn.ghost { background: transparent; }
.fs-btn.link { border-color: transparent; opacity: .9; }
.fs-btn:hover { opacity: 1; filter: brightness(1.03); }
.fs-hero-status { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--fs-muted); font-weight: 600; }
.fs-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fs-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--fs-border); color: var(--fs-text); opacity: .9; }
.fs-hero-card { margin-top: 12px; border: 1px solid var(--fs-border); border-radius: 12px; background: var(--fs-surface-opaque); padding: 14px; }
.fs-hero-card-title { font-weight: 700; margin-bottom: 8px; }
.fs-steps { margin: 0; padding-left: 18px; color: var(--fs-text); }

.fs-section { padding: 12px 0 6px; }
.fs-section-title { font-size: 18px; font-weight: 800; letter-spacing: .3px; margin: 20px 0 10px; color: var(--fs-text); text-indent: 20px; }
.fs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media (max-width: 960px) { .fs-grid { grid-template-columns: 1fr; } }
.fs-card { position: relative; display: block; border: 1px solid var(--fs-border); border-radius: 12px; background: var(--fs-surface-opaque); padding: 14px; color: var(--fs-text); text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease; }
.fs-card:hover { filter: brightness(1.06); transform: translateY(-2px); border-color: var(--fs-accent); box-shadow: 0 8px 24px rgba(2,6,23,0.35); }
.fs-card::after { content: '→'; position: absolute; right: 12px; top: 14px; color: var(--fs-muted); font-weight: 800; transition: transform .18s ease, color .2s ease; }
.fs-card:hover::after { transform: translateX(2px); color: var(--fs-text); }
.fs-card-title { margin-right: 18px; }
.fs-card-title { font-weight: 700; margin-bottom: 6px; }
.fs-card-desc { color: var(--fs-muted); }

.fs-links { display: flex; gap: 12px; flex-wrap: wrap; }
.fs-link { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--fs-border); color: var(--fs-text); text-decoration: none; opacity: .9; }
.fs-link:hover { opacity: 1; border-style: solid; }

/* Facts list */
.fs-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .fs-facts { grid-template-columns: 1fr; } }
.fs-facts li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--fs-border); border-radius: 12px; background: var(--fs-surface-opaque); padding: 10px 12px; }
.fs-facts .k { color: var(--fs-muted); font-weight: 600; letter-spacing: .2px; }
.fs-facts .v { color: var(--fs-text); font-weight: 800; letter-spacing: .3px; }
/* Inline facts (pills) */
.fs-facts-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.fs-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fs-border); background: var(--fs-surface-opaque); color: var(--fs-text); font-weight: 700; letter-spacing: .2px; }
.fs-dungeon-tags { margin: 6px 0 4px; }
.fs-dungeon-note { margin-top: 4px; color: var(--fs-muted); font-size: 12px; }

/* Guide callout */
.fs-guide { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--fs-border); background: var(--fs-surface-opaque); color: var(--fs-text); text-decoration: none; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.fs-guide::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; border-radius: 12px 0 0 12px; background: linear-gradient(180deg, var(--fs-accent), var(--fs-accent-2)); }
.fs-guide:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(2,6,23,0.35); border-color: var(--fs-accent); }
.fs-guide-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(34,211,238,.22)); color: #fff; font-weight: 800; }
.fs-guide-body { display: flex; flex-direction: column; }
.fs-guide-title { font-weight: 800; letter-spacing: .2px; }
/* Guide page big title */
.fs-guide-page .fs-guide-title { text-align: center; font-size: 26px; font-weight: 900; letter-spacing: .3px; margin-bottom: 12px; }
.fs-guide-sub { color: var(--fs-muted); font-size: 12px; }
.fs-guide-arrow { margin-left: auto; color: var(--fs-muted); font-weight: 800; }
.fs-guide:hover .fs-guide-arrow { color: var(--fs-text); }

/* Server Info cards */
.fs-infocards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1200px) { .fs-infocards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .fs-infocards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fs-infocards { grid-template-columns: 1fr; } }
.fs-info { position: relative; border: 1px solid var(--fs-border); border-radius: 12px; background: var(--fs-surface-opaque); padding: 12px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.fs-info:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(2,6,23,0.35); }
.fs-info-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fs-info-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--fs-text); font-weight: 800; letter-spacing: .3px; background: linear-gradient(135deg, rgba(156,163,175,.20), rgba(75,85,99,.20)); border: 1px solid var(--fs-border); }
.fs-info-title { font-weight: 800; color: var(--fs-text); letter-spacing: .2px; }
.fs-info-desc { color: var(--fs-muted); font-size: 13px; line-height: 1.35; }
.fs-rates { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; align-items: baseline; }
.fs-rates .r { font-weight: 800; color: var(--fs-text); }
.fs-rates .lbl { color: var(--fs-muted); font-size: 12px; }

/* Guide page link colors */
.fs-guide-page a { color: var(--fs-accent); text-decoration: underline; }
.fs-guide-page a:visited { color: var(--fs-accent); }
.fs-guide-page a:hover { color: var(--fs-accent-2); }

/* Guide page layout and card tweaks */
.fs-guide-page .fs-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .fs-guide-page .fs-grid { grid-template-columns: 1fr; } }
.fs-guide-page .fs-card::after { content: none; display: none; }
.fs-guide-page .fs-card { cursor: default; }

/* Guide page: balance info cards to 3 columns on desktop for readability */
.fs-guide-page .fs-infocards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Guide page: centered callout link to full commands */
.fs-guide-page .fs-more-commands { display: flex; justify-content: center; margin-top: 12px; }
.fs-guide-page .fs-more-link,
.fs-guide-page .fs-more-link:visited {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--fs-border);
  background: linear-gradient(135deg, rgba(124,92,255,.20), rgba(34,211,238,.20));
  color: var(--fs-text); text-decoration: none;
  box-shadow: 0 8px 24px rgba(2,6,23,0.35);
}
.fs-guide-page .fs-more-link:hover { filter: brightness(1.06); transform: translateY(-1px); }
.fs-more-title { font-weight: 800; letter-spacing: .2px; }
.fs-more-sub { font-size: 12px; color: var(--fs-muted); }

/* Guide page: compact centered note box */
.fs-guide-page .fs-guide-note {
  max-width: 720px;
  margin: 10px auto 16px;
  padding: 12px 14px;
  text-align: center;
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  background: var(--fs-surface-opaque);
  color: var(--fs-text);
}
/* Attention variant for rule reminder */
.fs-guide-page .fs-guide-note.attn {
  background: rgba(234,179,8,.12);
  border-color: rgba(234,179,8,.45);
}

/* Guide page: subcategory visual separator */
.fs-guide-page .fs-subheading { display: flex; align-items: center; gap: 10px; }
.fs-guide-page .fs-subheading::after { content: ""; height: 1px; flex: 1 1 auto; background: linear-gradient(90deg, var(--fs-accent), transparent); opacity: .6; }

/* Commands in a single row with horizontal scroll if needed */
.fs-guide-page .fs-commands-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px; /* avoid scrollbar overlap */
}

/* Guide page: code legibility */
.fs-guide-page code { font-size: 1em; }

/* Guide page: class changes image flip */
.fs-flip-y { display: inline-block; transform: scaleY(-1); }
/* Horizontal flip for sprites */
.fs-flip-x { display: inline-block; transform: scaleX(-1); }
.fs-class-img { width: 72px; height: auto; margin: 0 12px 0 0; display: block; border-radius: 8px; border: none; }

/* Class Changes callout */
.fs-class-callout {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
  padding: 14px 16px 54px 16px;
  border-radius: 14px; border: 1px solid var(--fs-border);
  background: var(--fs-surface-opaque);
  overflow: hidden;
}
.fs-class-callout::before {
  content: "";
  position: absolute; left: -1px; top: -1px; bottom: -1px; width: 5px;
  background: linear-gradient(180deg, var(--fs-accent), var(--fs-accent-2));
  border-radius: 14px 0 0 14px;
}
.fs-class-callout::after { content: none; display: none; }
.fs-class-media { width: auto; height: auto; display: flex; align-items: center; justify-content: center; background: transparent; border: none; box-shadow: none; }
.fs-class-body p { margin: 0 0 8px; color: var(--fs-text); }
.fs-class-body .fs-class-points { margin: 0 0 12px; padding-left: 18px; color: var(--fs-muted); }
.fs-class-body .fs-class-points li { margin: 4px 0; }
.fs-class-link, .fs-class-link:visited { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--fs-accent); border-bottom: 2px solid var(--fs-accent); padding-bottom: 2px; font-weight: 800; letter-spacing: .2px; position: absolute; right: 16px; bottom: 12px; }
.fs-class-link::after { content: '→'; color: var(--fs-muted); transition: transform .18s ease, color .18s ease; }
.fs-class-link:hover { color: var(--fs-accent-2); border-color: var(--fs-accent-2); }
.fs-class-link:hover::after { transform: translateX(3px); color: var(--fs-text); }
/* Prontera hub NPC badges */
.fs-npc-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 1200px) { .fs-npc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 860px) { .fs-npc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .fs-npc-grid { grid-template-columns: 1fr; } }
.fs-npc { border: 1px solid var(--fs-border); border-radius: 12px; background: var(--fs-surface-opaque); padding: 12px; text-align: center; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.fs-npc:hover { transform: translateY(-2px); border-color: var(--fs-accent); box-shadow: 0 8px 24px rgba(2,6,23,0.35); }
.fs-npc-img { width: auto; height: 100px; display: block; margin: 0 auto 6px; image-rendering: pixelated; }
.fs-npc-title { display: block; margin-bottom: 4px; font-weight: 800; letter-spacing: .2px; }
.fs-npc-desc { color: var(--fs-muted); font-size: 13px; line-height: 1.35; }
.fs-npc-items { margin-top: 6px; display: grid; grid-auto-rows: minmax(20px,auto); gap: 4px; text-align: left; }
.fs-npc-item { display: flex; align-items: center; gap: 8px; color: var(--fs-text); font-size: 12px; }
.fs-npc-ico { width: 18px; height: auto; image-rendering: pixelated; }
.fs-navi { display: inline-block; margin: 6px 0 8px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--fs-border); background: transparent; color: var(--fs-text); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; cursor: pointer; }
.fs-navi:hover { border-color: var(--fs-accent); color: var(--fs-accent); }
.fs-navi.copied { position: relative; border-color: var(--fs-accent); color: var(--fs-accent); }
.fs-navi.copied::after { content: "Copied!"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: var(--fs-surface-opaque); border: 1px solid var(--fs-border); color: var(--fs-text); padding: 2px 6px; border-radius: 6px; font-size: 11px; white-space: nowrap; }

/* Repeatable quests callout */
.fs-repeatable-callout { position: relative; border: 1px solid var(--fs-border); border-radius: 12px; background: var(--fs-surface-opaque); padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.fs-repeatable-callout::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; border-radius: 12px 0 0 12px; background: linear-gradient(180deg, var(--fs-accent), var(--fs-accent-2)); }
.fs-repeatable-callout p { margin: 6px 0; }
.fs-repeatable-img { width: 54px; height: auto; image-rendering: pixelated; }
.fs-repeatable-body { display: flex; flex-direction: column; }

/* Repeatable quests table specifics */
.fs-repeatable-table .monster-icon {
  width: auto;
  max-width: 64px;
  max-height: 64px;
  margin-right: 6px;
  vertical-align: middle;
  image-rendering: pixelated;
}
.fs-repeatable-table .nav-btn {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--fs-border);
  background: rgba(15,23,42,0.8);
  color: var(--fs-text);
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.fs-repeatable-table .nav-btn:hover {
  border-color: var(--fs-accent);
  color: var(--fs-accent-2);
}
.fs-repeatable-table .nav-btn.copied::after {
  content: "Copied!";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fs-surface-opaque);
  color: var(--fs-text);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  white-space: nowrap;
  border: 1px solid var(--fs-border);
}

/* Sorted column arrow indicator */
.fs-repeatable-table th.sortable {
  position: relative;
  cursor: pointer;
  padding-right: 22px;
}
.fs-repeatable-table th.sortable::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0;
  transform: translateY(-50%);
}
.fs-repeatable-table th.sortable.asc::after {
  border-bottom: 6px solid var(--fs-accent-2);
  opacity: 1;
}
.fs-repeatable-table th.sortable.desc::after {
  border-top: 6px solid var(--fs-accent-2);
  opacity: 1;
}

/* Community callout */
.fs-community-callout { position: relative; border: 1px solid var(--fs-border); border-radius: 12px; background: var(--fs-surface-opaque); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fs-community-body { color: var(--fs-text); }
@media (max-width: 720px) { .fs-community-callout { flex-direction: column; align-items: flex-start; } }

/* Ranking subnav */
.fs-subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.fs-subnav-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--fs-border); border-radius: 10px; color: var(--fs-text); text-decoration: none; background: linear-gradient(135deg, rgba(156,163,175,.12), rgba(75,85,99,.12)); }
.fs-subnav-link:hover { filter: brightness(1.06); border-color: var(--fs-accent); }
.fs-subnav-link.is-active { border-color: var(--fs-accent); background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(34,211,238,.18)); }
.fs-subnav-dot { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--fs-accent), var(--fs-accent-2)); box-shadow: 0 0 8px rgba(255,255,255,0.10); }

/* Inline rank tabs */
.fs-rank-tabs { display: inline-flex; justify-content: center; align-items: center; gap: 8px; margin: 8px 0 12px; padding: 8px 12px; border: 1px solid var(--fs-border); border-radius: 999px; background: linear-gradient(135deg, rgba(156,163,175,.12), rgba(75,85,99,.12)); box-shadow: var(--fs-shadow); }
.fs-rank-tab { color: var(--fs-text); text-decoration: none; font-weight: 900; letter-spacing: .3px; opacity: .9; }
.fs-rank-tab:hover { opacity: 1; color: var(--fs-accent); }
.fs-rank-tab.is-active { color: var(--fs-accent-2); text-shadow: 0 1px 0 rgba(255,255,255,0.04); }
.fs-rank-sep { color: var(--fs-muted); opacity: .8; }

/* Submenu (default Flux #submenu) styled like rank tabs */
#submenu {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
  font-size: 0; /* hide raw "Menu:" label and / separators */
}
#submenu .sub-menu-item {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--fs-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(135deg, rgba(156,163,175,.12), rgba(75,85,99,.12));
}
#submenu .sub-menu-item + .sub-menu-item { margin-left: 6px; }
#submenu .sub-menu-item:hover {
  border-color: var(--fs-accent);
  color: var(--fs-accent-2);
}
#submenu .current-sub-menu {
  border-color: var(--fs-accent);
  color: var(--fs-accent-2);
  box-shadow: 0 6px 18px rgba(15,23,42,0.55);
}

/* Page-level actions (pagemenu) */
.fs-page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--fs-border);
  background: rgba(15,23,42,0.85);
}
.fs-page-actions-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fs-muted);
}
.fs-page-actions-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fs-page-actions-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--fs-border);
  font-size: 12px;
  color: var(--fs-text);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(156,163,175,.12), rgba(75,85,99,.12));
}
.fs-page-actions-link:hover {
  border-color: var(--fs-accent);
  color: var(--fs-accent-2);
}
.fs-page-actions-link.is-danger {
  border-color: rgba(248, 113, 113, 0.6);
  background: linear-gradient(135deg, rgba(127,29,29,0.6), rgba(185,28,28,0.7));
}
.fs-page-actions-link.is-danger:hover {
  border-color: #f97373;
  color: #fee2e2;
}

/* Hide legacy headings inside default ranking partials when embedded */
.fs-rank-panel h2, .fs-rank-panel h3 { display: none; }

/* Ranking tables */
.fs-table {
  margin: 10px 0 14px;
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  background: var(--fs-surface-opaque);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(2,6,23,0.25);
}
.fs-table table { width: 100%; border-collapse: collapse; }
.fs-table thead th,
.fs-table > table > tr:first-child > th { /* support legacy markup without <thead> */
  background: linear-gradient(180deg, rgba(156,163,175,.18), rgba(75,85,99,.14));
  color: var(--fs-text);
  font-weight: 800;
  letter-spacing: .2px;
  text-align: left;
  border-bottom: 1px solid var(--fs-border);
}
.fs-table th, .fs-table td { padding: 10px 12px; vertical-align: middle; }
.fs-table tr:nth-child(even) td { background: rgba(148,163,184,0.06); }
.fs-table tr:hover td { background: rgba(124,92,255,0.09); }
.fs-table .empty-row td { height: 32px; opacity: .55; }
.fs-table .top-ranked td {
  background: linear-gradient(90deg, rgba(124,92,255,.12), rgba(34,211,238,.10));
  border-bottom: 1px solid var(--fs-border);
}
.fs-table img { image-rendering: pixelated; }
.fs-table a { color: var(--fs-accent); text-decoration: none; }
.fs-table a:hover { color: var(--fs-accent-2); text-decoration: underline; }

/* Make tables scrollable on small screens */
.fs-table { overflow-x: auto; }

/* Currency callout (Gold Card) */
.fs-currency-callout {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--fs-border);
  background: var(--fs-surface-opaque);
}
.fs-currency-callout::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px;
  background: linear-gradient(180deg, var(--fs-accent), var(--fs-accent-2));
  border-radius: 12px 0 0 12px;
}
.fs-currency-img { width: 54px; height: auto; image-rendering: pixelated; display: inline-block; margin-right: 10px; vertical-align: middle; }
.fs-currency-callout p { margin: 0; }
@media (max-width: 720px) { .fs-class-callout { flex-direction: column; align-items: flex-start; } }
/* Guide overrides */
.fs-guide-page code { font-size: 1.3em; }
.fs-class-link::after { content: "\2192"; }

/* Guide: refine class changes link visuals and visited color */
.fs-class-link, .fs-class-link:link, .fs-class-link:visited {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--fs-accent);
  background-image: linear-gradient(90deg, var(--fs-accent), var(--fs-accent-2));
  background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .25s ease, color .2s ease;
  font-weight: 800; letter-spacing: .2px;
  position: absolute; right: 16px; bottom: 12px;
  border-bottom: none; padding-bottom: 0;
}
.fs-class-link::after {
  content: "\2192";
  color: var(--fs-accent-2);
  font-weight: 900; font-size: 14px; line-height: 1;
  transition: transform .18s ease, color .18s ease;
}
.fs-class-link:hover { color: var(--fs-accent-2); background-size: 100% 2px; }
.fs-class-link:hover::after { transform: translateX(3px); color: var(--fs-text); }

/* Classes page */
.fs-classpage .fs-class-toolbar { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: 8px 0 12px; }
.fs-classpage .fs-input { width: 100%; max-width: 360px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--fs-border); background: var(--fs-surface-opaque); color: var(--fs-text); }
.fs-classpage .fs-actions { display: flex; gap: 8px; }
.fs-btn.small { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; border: 1px solid var(--fs-border); background: transparent; color: var(--fs-text); cursor: pointer; }
.fs-btn.small:hover { border-color: var(--fs-accent); color: var(--fs-accent); }

.fs-class-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (max-width: 960px) { .fs-class-grid { grid-template-columns: 1fr; } }
.fs-classcard { border: 1px solid var(--fs-border); border-radius: 12px; background: var(--fs-surface-opaque); }
.fs-classcard-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.fs-classcard-title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .2px; }
.fs-toggle { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--fs-border); background: transparent; color: var(--fs-text); cursor: pointer; }
.fs-toggle:hover { border-color: var(--fs-accent); color: var(--fs-accent); }
.fs-classcard-body { padding: 0 14px 12px; }
.fs-classpoints { margin: 6px 0 8px; padding-left: 18px; }
.fs-classlinks { display: flex; justify-content: flex-end; }
.fs-classlink { text-decoration: none; color: var(--fs-accent); border-bottom: 1px solid var(--fs-accent); padding-bottom: 1px; }
.fs-classlink:hover { color: var(--fs-accent-2); border-color: var(--fs-accent-2); }
/* Legacy Classes layout (from default theme), minimally styled */
.fs-classpage .info-highlight { border: 1px solid var(--fs-border); background: var(--fs-surface-opaque); border-radius: 10px; padding: 10px 12px; }
.fs-classpage .class-section { border: 1px solid var(--fs-border); border-radius: 12px; background: var(--fs-surface-opaque); margin: 10px 0; }
.fs-classpage .class-section { overflow: visible; margin: 70px 0 16px; }
.fs-classpage .class-header { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 12px 10px 12px; cursor: pointer; padding-left: 140px; }
.fs-classpage .class-icon { position: absolute; left: 12px; top: -68px; width: 118px; height: 111px; image-rendering: pixelated; filter: drop-shadow(0 4px 10px rgba(2,6,23,0.35)); pointer-events: none; }
.fs-classpage .class-name { font-weight: 800; letter-spacing: .2px; }
.fs-classpage .class-header .arrow { margin-left: auto; display: inline-block; transition: transform .18s ease, color .18s ease; transform: rotate(0deg); color: var(--fs-muted); }
.fs-classpage .class-header.open .arrow { transform: rotate(90deg); color: var(--fs-accent); }
.fs-classpage .class-table { width: 100%; border-collapse: collapse; display: table; }
.fs-classpage .fs-ct-wrap { max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; transition: max-height .35s ease, opacity .2s ease, margin-top .2s ease; }
.fs-classpage .fs-ct-wrap.show { max-height: 1200px; opacity: 1; margin-top: 6px; }
.fs-classpage .class-table th, .fs-classpage .class-table td { padding: 8px 10px; border-top: 1px solid var(--fs-border); vertical-align: top; }
.fs-classpage .skill-icon { width: 22px; height: 22px; margin-right: 6px; image-rendering: pixelated; vertical-align: middle; }
/* Hide comments column in classes tables */
.fs-classpage .class-table th:nth-child(4),
.fs-classpage .class-table td:nth-child(4) { display: none; }

/* Account / generic forms (module=account) */
.generic-form { margin: 10px 0 18px; }

.generic-form-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  border: 1px solid var(--fs-border);
  background: var(--fs-surface-opaque);
  box-shadow: 0 10px 22px rgba(2,6,23,0.45);
}
.generic-form-table th,
.generic-form-table td {
  padding: 10px 12px;
}
.generic-form-table th {
  width: 180px;
  text-align: left;
  font-weight: 600;
  color: var(--fs-muted);
  border-bottom: 1px solid rgba(148,163,184,0.18);
}
.generic-form-table tr + tr td {
  border-top: 1px solid rgba(148,163,184,0.18);
}

/* Inputs/buttons inside account forms */
.generic-form-table input[type="text"],
.generic-form-table input[type="password"],
.generic-form-table input[type="email"],
.generic-form-table input[type="number"],
.generic-form-table input[type="date"],
.generic-form-table select,
.generic-form-table textarea {
  width: 100%;
  box-sizing: border-box;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--fs-border);
  background: #020617;
  color: var(--fs-text);
  font-family: inherit;
  font-size: 13px;
}
.generic-form-table textarea {
  min-height: 80px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.generic-form-table .date-field select {
  width: auto;
  min-width: 72px;
  display: inline-block;
}
.generic-form-table input:focus,
.generic-form-table select:focus,
.generic-form-table textarea:focus {
  outline: none;
  border-color: var(--fs-accent);
  box-shadow: 0 0 0 1px rgba(124,92,255,0.65);
}

.generic-form-table input[type="submit"],
.generic-form-table button,
.generic-form-table input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--fs-border);
  background: linear-gradient(135deg, rgba(148,163,184,.20), rgba(55,65,81,.32));
  color: var(--fs-text);
  font-weight: 600;
  letter-spacing: .18px;
  cursor: pointer;
}
.generic-form-table input[type="submit"]:hover,
.generic-form-table button:hover,
.generic-form-table input[type="button"]:hover {
  border-color: var(--fs-accent);
  color: var(--fs-accent-2);
}

/* Account info + password rules from default create.php, restyled for dark theme */
.fs-main .account-info {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--fs-border);
  background: var(--fs-surface-opaque);
  color: var(--fs-text);
  max-width: 520px;
}

.fs-main #password-rules {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid var(--fs-border);
  background: rgba(15,23,42,0.9);
}
.fs-main #password-rules li {
  margin: 4px 10px;
}
.fs-main #password-rules li.valid {
  color: #22c55e;
}
.fs-main #password-rules li.invalid {
  color: var(--fs-muted);
}

/* Error/success flashes */
.fs-main .red {
  display: block;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239,68,68,0.16);
  border: 1px solid rgba(239,68,68,0.55);
  color: var(--fs-text);
}
.fs-main .green {
  display: block;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(34,197,94,0.16);
  border: 1px solid rgba(34,197,94,0.55);
  color: var(--fs-text);
}

/* Download page */
.fs-download { max-width: 900px; margin: 0 auto 18px; }
.fs-download-intro { color: var(--fs-muted); margin: 6px 0 16px; }
.fs-download-intro code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 12px; }

.fs-download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 14px;
}
.fs-download-card {
  flex: 1 1 260px;
  min-width: 0;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid var(--fs-border);
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,64,175,0.55));
  padding: 12px 14px;
  color: var(--fs-text);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 24px rgba(2,6,23,0.65);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.fs-download-card:hover {
  transform: translateY(-2px);
  border-color: var(--fs-accent);
  box-shadow: 0 14px 32px rgba(2,6,23,0.8);
}
.fs-download-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--fs-muted); }
.fs-download-title { font-size: 16px; font-weight: 800; letter-spacing: .2px; }
.fs-download-host { font-size: 13px; color: var(--fs-accent-2); }

.fs-download-note {
  border-radius: 12px;
  border: 1px solid var(--fs-border);
  background: rgba(30,64,175,0.18);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--fs-text);
}

/* Pet info page wrapper */
.fs-petpage { max-width: 1000px; margin: 0 auto 18px; }
.fs-pet-intro { color: var(--fs-muted); margin: 6px 0 14px; }
.fs-petpage table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  table-layout: fixed;
  border-radius: 12px;
  border: 1px solid var(--fs-border);
  background: var(--fs-surface-opaque);
  box-shadow: 0 10px 24px rgba(2,6,23,0.55);
  overflow: hidden;
}
.fs-petpage thead th:nth-child(1) { width: 16%; }  /* Pet */
.fs-petpage thead th:nth-child(2) { width: 20%; }  /* Taming Item */
.fs-petpage thead th:nth-child(3) { width: 10%; }  /* Capture Rate */
.fs-petpage thead th:nth-child(4) { width: 20%; }  /* Food Item */
.fs-petpage thead th:nth-child(5) { width: 34%; }  /* Bonuses */
.fs-petpage thead th {
  background: linear-gradient(180deg, rgba(148,163,184,.25), rgba(31,41,55,.9));
  color: var(--fs-text);
  font-weight: 800;
  letter-spacing: .18px;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--fs-border);
}
.fs-petpage tbody td {
  padding: 8px 10px;
  vertical-align: middle;
}
/* Align numeric columns to the right (Capture Rate) */
.fs-petpage thead th:nth-child(3),
.fs-petpage tbody td:nth-child(3) {
  text-align: right;
}
/* Stripe separator and subtle zebra shading between pets */
.fs-petpage tbody tr + tr td {
  border-top: 1px solid rgba(148,163,184,0.18);
}
.fs-petpage tbody tr:nth-child(even) {
  background: rgba(15,23,42,0.75);
}
/* Pet and item cells: icon + name layout */
.fs-petpage .pet-cell,
.fs-petpage .item-cell {
  /* keep default table-cell display to preserve column layout, allow wrapping text */
  white-space: normal;
}
.fs-petpage .pet-cell img,
.fs-petpage .item-cell img {
  image-rendering: pixelated;
  margin-right: 8px;
  vertical-align: middle;
}
.fs-petpage .pet-cell span:first-of-type {
  font-weight: 600;
}
.fs-petpage .pet-cell span,
.fs-petpage .item-cell span {
  display: inline-block;
  line-height: 1.2;
}
.fs-petpage .evolution-group {
  border: 1px solid var(--fs-border);
  border-radius: 16px;
  background: var(--fs-surface-opaque);
  padding: 18px 18px 14px 18px;
  margin: 20px 0;
  box-shadow: var(--fs-shadow);
}
.fs-petpage .evolution-group h2 {
  margin: -6px 0 12px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--fs-text);
  text-align: center;
  border-bottom: 1px solid var(--fs-border);
  padding-bottom: 6px;
}
.fs-petpage .evo-chain {
  gap: 2.5em;
  padding-bottom: 1.5em;
}
.fs-petpage .evo-step div { color: var(--fs-muted); }
.fs-petpage .evo-step .evo-name {
  color: var(--fs-accent-2);
  text-shadow: none;
}
.fs-petpage .evo-arrow {
  color: var(--fs-muted);
}
.fs-petpage .evo-arrow .evo-materials .material span {
  font-size: 0.5em;
  color: var(--fs-muted);
}
.fs-petpage .no-tame {
  color: var(--fs-muted);
  font-style: italic;
}
.fs-petpage .bonus-box {
  max-width: none;
  white-space: normal;
}
.fs-petpage .bonus-box > div {
  margin-bottom: 6px;
}
.fs-petpage .bonus-box > div strong {
  display: inline-block;
  min-width: 70px;
  color: var(--fs-accent-2);
}
.fs-petpage .bonus-chunk::before {
  content: "\2022";
  margin: 0 0.4em 0 0;
  color: var(--fs-accent-2);
}
.fs-petpage .bonus-chunk.no-sep::before {
  content: "";
}
.fs-petpage .taming-item .tooltip-icon {
  background: rgba(15,23,42,0.9);
}
