/* ==========================================================================
   Floating Fortress — Anime Fantasy RPG Design System
   Brand palette, game illustrations and motion with reduced-motion support
   ========================================================================== */

/* ── Typography & Local Fonts ── */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-variable.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('../fonts/nunito-sans-variable.ttf') format('truetype');
  font-weight: 200 900;
  font-display: swap;
}

/* ── Design Tokens & Base Setup ── */
html:has(body.ff-anime) {
  scroll-snap-type: none;
  scroll-behavior: smooth;
}

body.ff-anime {
  --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Nunito', 'Nunito Sans', sans-serif;

  /* Color Palette */
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #38bdf8;
  --primary-glow: rgba(14, 165, 233, 0.35);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-glow: rgba(245, 158, 11, 0.4);

  --ink-primary: #0f2744;
  --ink-secondary: #3b526d;
  --ink-muted: #647d9a;

  --bg-canvas: #f4f9fd;
  --surface-card: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --border-glass: rgba(255, 255, 255, 0.7);
  --border-subtle: rgba(14, 165, 233, 0.16);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 39, 68, 0.05);
  --shadow-md: 0 10px 25px -4px rgba(15, 39, 68, 0.08), 0 4px 10px -2px rgba(15, 39, 68, 0.04);
  --shadow-lg: 0 20px 35px -6px rgba(15, 39, 68, 0.12), 0 8px 16px -4px rgba(15, 39, 68, 0.06);

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ff-anime :is(main, .news-page, .auth-container, .ff-ranking-page) {
  flex: 1 0 auto;
}

.ff-anime .site-footer {
  margin-top: auto;
}

.ff-anime section {
  scroll-snap-align: none;
  scroll-margin-top: 96px;
}

.ff-anime .fortress-home {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(186, 230, 253, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 90% 65%, rgba(254, 243, 199, 0.35) 0%, transparent 40%),
    var(--bg-canvas);
}

.ff-anime :is(a, button, summary):focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 4px;
}

.ff-anime button {
  font-family: var(--font-display);
  cursor: pointer;
}

.ff-anime [hidden] {
  display: none !important;
}

.ff-anime .ff-container {
  width: calc(100% - 80px);
  max-width: 1280px;
  margin-inline: auto;
}

.ff-anime .ff-section {
  padding-block: 100px;
}

.ff-anime .an-icon {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ── Section Headings ── */
.ff-anime .ff-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 900; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--primary);
  padding: 0; background: none; border: 0; border-radius: 0;
  margin-bottom: 16px;
}

.ff-anime .ff-eyebrow:before {
  content: '✦';
  font-size: 12px;
  color: var(--accent-gold);
}

.ff-anime .ff-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
}

.ff-anime .ff-section-heading h2 {
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -1.5px;
  color: var(--ink-primary);
  text-shadow: 0 1px 2px rgba(15, 39, 68, 0.12);
}

.ff-anime .ff-section-heading > p {
  max-width: 440px;
  line-height: 1.8;
  color: var(--ink-muted);
  font-size: 16px;
}

.ff-anime .ff-section-heading h2:after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary) 60%, var(--accent-gold) 60%);
  margin-top: 18px;
}

/* ── Modern Buttons (Replaces Dated Beveled SVGs) ── */
.ff-anime .btn {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.3px;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
}

/* Shimmer animation across buttons */
.ff-anime .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: none;
}

.ff-anime .btn:hover::before {
  transform: translateX(500%) skewX(-20deg);
  transition: transform 0.75s ease-in-out;
}

/* Primary Button (Radiant Anime Amber/Gold) */
.ff-anime .ff-btn-primary {
  min-width: 210px;
  min-height: 56px;
  padding: 14px 34px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  color: #0b1a2e;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 20px var(--accent-gold-glow), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.ff-anime .ff-btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #fcd34d 50%, #f59e0b 100%);
  color: #050d18;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.ff-anime .ff-btn-primary:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

/* Glass/Secondary Button (Frosted Cyan-White) */
.ff-anime .ff-btn-glass {
  min-width: 200px;
  min-height: 56px;
  padding: 14px 30px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--primary);
  border: 1.5px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
  font-size: 15px;
}

.ff-anime .ff-btn-glass:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary);
  color: var(--primary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.25);
}

.ff-anime .ff-btn-glass:hover .an-icon {
  transform: translateX(4px);
}

.ff-anime .ff-btn-glass .an-icon {
  transition: transform 0.2s ease;
}

/* Giant Hero Play Button — Modern Anime RPG Sun Gold & Celestial Crystal */
.ff-anime .rp-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 8px 10px 8px 28px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #ffe57f 0%, #ffc825 32%, #f59e0b 70%, #d97706 100%);
  border: 2px solid #fff59d;
  box-shadow:
    0 12px 28px rgba(245, 158, 11, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.12),
    inset 0 2px 2px rgba(255, 255, 255, 0.95),
    inset 0 -3px 4px rgba(180, 83, 9, 0.45),
    0 0 0 4px rgba(255, 200, 37, 0.22);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: goldAuraBreathe 3.6s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ff-anime .rp-play-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-25deg);
  animation: buttonSheen 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes buttonSheen {
  0%, 65% { transform: translateX(0) skewX(-25deg); }
  85%, 100% { transform: translateX(490%) skewX(-25deg); }
}

@keyframes goldAuraBreathe {
  0%, 100% {
    box-shadow:
      0 12px 28px rgba(245, 158, 11, 0.45),
      0 4px 10px rgba(0, 0, 0, 0.12),
      inset 0 2px 2px rgba(255, 255, 255, 0.95),
      inset 0 -3px 4px rgba(180, 83, 9, 0.45),
      0 0 0 4px rgba(255, 200, 37, 0.22);
  }
  50% {
    box-shadow:
      0 18px 38px rgba(245, 158, 11, 0.68),
      0 6px 14px rgba(0, 0, 0, 0.15),
      inset 0 2px 3px rgba(255, 255, 255, 1),
      inset 0 -3px 5px rgba(180, 83, 9, 0.5),
      0 0 0 6px rgba(255, 200, 37, 0.38),
      0 0 30px rgba(255, 200, 37, 0.45);
  }
}

.ff-anime .rp-play-button:hover {
  transform: translateY(-3px) scale(1.025);
  background: linear-gradient(180deg, #fff176 0%, #ffd54f 30%, #fbbf24 70%, #ea580c 100%);
  border-color: #ffffff;
  box-shadow:
    0 18px 40px rgba(245, 158, 11, 0.75),
    0 6px 14px rgba(0, 0, 0, 0.15),
    inset 0 2px 3px #ffffff,
    inset 0 -3px 5px rgba(180, 83, 9, 0.5),
    0 0 0 6px rgba(255, 200, 37, 0.45),
    0 0 35px rgba(255, 200, 37, 0.55);
}

.ff-anime .rp-play-button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    0 6px 18px rgba(245, 158, 11, 0.45),
    inset 0 2px 4px rgba(180, 83, 9, 0.4);
}

.ff-anime .rp-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #fff9c4 60%, #ffe082 100%);
  color: #b45309;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35), inset 0 2px 2px #ffffff;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ff-anime .rp-play-icon svg {
  transform: translateX(1px);
}

.ff-anime .rp-play-button:hover .rp-play-icon {
  transform: scale(1.1) translateX(2px);
  color: #92400e;
}

.ff-anime .rp-play-title {
  display: block;
  font-size: 19px;
  font-weight: 1000;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #381800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  line-height: 1;
}

/* ── Top Navigation Bar (Floating Glassmorphism) ── */
.ff-anime .top-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 20px rgba(15, 39, 68, 0.05);
  transition: all 0.3s ease;
}

.ff-anime .top-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(15, 39, 68, 0.1);
  border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}

.ff-anime .top-nav-inner {
  height: 82px;
  max-width: 1400px;
  width: 92%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ff-anime .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.ff-anime .nav-brand:hover {
  transform: scale(1.02);
}

.ff-anime .ff-nav-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.25));
}

.ff-anime .rp-nav-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
  color: var(--ink-primary);
  letter-spacing: -0.4px;
}

.ff-anime .rp-nav-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.ff-anime .rp-title-floating,
.ff-anime .auth-logo .rp-title-floating,
.ff-anime .nav-brand .rp-title-floating {
  color: #0284c7 !important;
  text-shadow: 0 1px 0 #ffffff, 0 2px 3px rgba(15, 39, 68, 0.15);
  font-weight: 950;
}

.ff-anime .rp-title-fortress,
.ff-anime .auth-logo .rp-title-fortress,
.ff-anime .nav-brand .rp-title-fortress,
.ff-anime .rp-nav-title em {
  font-style: normal;
  color: #e9ac18 !important;
  text-shadow: 0 1px 0 #ffffff, 0 2px 3px rgba(124, 81, 9, 0.18);
  font-weight: 950;
}

.ff-anime .rp-nav-title small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: none;
  margin-top: 4px;
  color: var(--ink-muted);
  font-weight: 800;
}

.ff-anime .nav-links {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ff-anime :is(.rp-nav-sections, .rp-nav-account) {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ff-anime .nav-link {
  position: relative;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 850;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 9999px;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.ff-anime .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(135deg, #005fb8 0%, #0084d6 50%, #00b4f0 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.6);
}

.ff-anime .nav-link:hover,
.ff-anime .nav-link.is-active {
  color: var(--ink-primary);
  background: rgba(14, 165, 233, 0.12);
}

.ff-anime .nav-link:hover::after,
.ff-anime .nav-link.is-active::after {
  transform: scaleX(1);
}

.ff-anime .ff-community-link {
  color: #5865f2 !important;
}

.ff-anime .ff-community-link::after {
  background: #5865f2;
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.6);
}

.ff-anime .ff-community-link:hover {
  background: rgba(88, 101, 242, 0.1) !important;
}

/* Play Button in Nav */
.ff-anime .ff-nav-play {
  min-width: 136px;
  min-height: 44px;
  padding: 8px 22px;
  font-size: 13px;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
  margin-inline: 6px;
}

.ff-anime .ff-nav-play:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
  transform: translateY(-2px);
}

/* Language Dropdown */
.ff-anime .lang-selector {
  position: relative;
}

.ff-anime .lang-btn {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-secondary);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(15, 39, 68, 0.04);
  transition: all 0.2s ease;
}

.ff-anime .lang-btn:hover {
  border-color: var(--primary);
  background: #ffffff;
}

.ff-anime .ff-lang-flag {
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ff-anime .lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  min-width: 140px;
  z-index: 200;
}

.ff-anime .lang-menu.show {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ff-anime .lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.ff-anime .lang-menu a:hover,
.ff-anime .lang-menu a.active {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
}

.ff-anime .ff-nav-toggle {
  display: none;
  background: var(--primary);
  color: white;
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.ff-anime .rp-header-sentinel {
  position: absolute;
  top: 0;
  width: 1px;
  height: 14px;
  pointer-events: none;
}

.ff-anime .skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  background: #fff;
  padding: 12px;
  z-index: 200;
  border-radius: 8px;
}

.ff-anime .skip-link:focus {
  top: 10px;
}

.ff-anime .ff-service-notice {
  margin-top: 82px;
  padding: 10px 20px;
  text-align: center;
  background: linear-gradient(90deg, #e0f2fe, #f0f9ff);
  border-bottom: 1px solid #bae6fd;
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 800;
}

/* ── Hero Section (Atmospheric Fantasy Canvas) ── */
.ff-anime .an-hero {
  position: relative;
  isolation: isolate;
  min-height: 880px;
  padding: 130px 0 40px;
  background: linear-gradient(180deg, #bae6fd 0%, #e0f2fe 50%, var(--bg-canvas) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ff-anime .an-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -3;
}

.ff-anime .an-hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(240, 249, 255, 0.95) 0%, rgba(240, 249, 255, 0.75) 40%, rgba(240, 249, 255, 0.05) 75%),
    linear-gradient(0deg, rgba(15, 39, 68, 0.25) 0%, transparent 40%);
}

.ff-anime .an-hero:after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg-canvas));
  z-index: -1;
}

.ff-anime .an-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 20px;
  min-height: 640px;
}

.ff-anime .an-hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
}

.ff-anime .an-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12);
  margin-bottom: 12px;
}

/* ── Dynamic Ambient Magic Particles ── */
.ff-anime .ff-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ff-anime .ff-mote {
  position: absolute;
  bottom: -30px;
  border-radius: 50%;
  pointer-events: none;
  animation: floatMote linear infinite;
  opacity: 0;
}

.ff-anime .ff-mote-1  { left: 6%;  width: 5px; height: 5px; background: #00e5ff; box-shadow: 0 0 12px #00e5ff, 0 0 20px #00e5ff; animation-duration: 9s;  animation-delay: 0s; }
.ff-anime .ff-mote-2  { left: 16%; width: 7px; height: 7px; background: #ffd54f; box-shadow: 0 0 14px #ffd54f, 0 0 24px #ffd54f; animation-duration: 12s; animation-delay: 2s; }
.ff-anime .ff-mote-3  { left: 26%; width: 4px; height: 4px; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; animation-duration: 8s;  animation-delay: 4.5s; }
.ff-anime .ff-mote-4  { left: 38%; width: 6px; height: 6px; background: #ffffff; box-shadow: 0 0 12px #ffffff, 0 0 20px #00e5ff; animation-duration: 11s; animation-delay: 1s; }
.ff-anime .ff-mote-5  { left: 48%; width: 5px; height: 5px; background: #ffd54f; box-shadow: 0 0 12px #ffd54f; animation-duration: 10s; animation-delay: 5s; }
.ff-anime .ff-mote-6  { left: 58%; width: 8px; height: 8px; background: #00e5ff; box-shadow: 0 0 16px #00e5ff, 0 0 26px #00e5ff; animation-duration: 13s; animation-delay: 3s; }
.ff-anime .ff-mote-7  { left: 68%; width: 4px; height: 4px; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; animation-duration: 7.5s; animation-delay: 6s; }
.ff-anime .ff-mote-8  { left: 78%; width: 6px; height: 6px; background: #ffd54f; box-shadow: 0 0 14px #ffd54f; animation-duration: 10.5s; animation-delay: 2.5s; }
.ff-anime .ff-mote-9  { left: 88%; width: 5px; height: 5px; background: #00e5ff; box-shadow: 0 0 12px #00e5ff; animation-duration: 9.5s; animation-delay: 4s; }
.ff-anime .ff-mote-10 { left: 22%; width: 6px; height: 6px; background: #ffffff; box-shadow: 0 0 12px #ffffff; animation-duration: 11.5s; animation-delay: 7s; }
.ff-anime .ff-mote-11 { left: 52%; width: 4px; height: 4px; background: #00e5ff; box-shadow: 0 0 10px #00e5ff; animation-duration: 8.5s; animation-delay: 3.5s; }
.ff-anime .ff-mote-12 { left: 82%; width: 7px; height: 7px; background: #ffd54f; box-shadow: 0 0 15px #ffd54f; animation-duration: 12.5s; animation-delay: 1.5s; }

@keyframes floatMote {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  50% {
    transform: translateY(-400px) translateX(28px);
    opacity: 0.9;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-850px) translateX(-20px);
    opacity: 0;
  }
}

.ff-anime .rp-hero-logo {
  width: 250px;
  height: auto;
  object-fit: contain;
  margin: 0 0 4px;
  filter: drop-shadow(0 8px 18px rgba(15, 39, 68, 0.2)) drop-shadow(0 0 20px rgba(0, 190, 255, 0.35));
  transition: transform .35s ease, filter .35s ease;
}

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes heroLogoGlow {
  0% { filter: drop-shadow(0 8px 18px rgba(15, 39, 68, 0.2)) drop-shadow(0 0 16px rgba(0, 190, 255, 0.3)); }
  100% { filter: drop-shadow(0 12px 24px rgba(15, 39, 68, 0.25)) drop-shadow(0 0 32px rgba(0, 210, 255, 0.58)); }
}

.ff-anime .an-hero h1 {
  font-size: clamp(42px, 4.4vw, 62px);
  line-height: 1.05;
  font-weight: 1000;
  letter-spacing: -2.2px;
  color: var(--ink-primary);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.95), 0 4px 14px rgba(15, 39, 68, 0.12);
}

.ff-anime .an-hero h1 em {
  font-style: normal;
  text-shadow: none;
  background: linear-gradient(135deg, #005fb8 0%, #0084d6 50%, #00b4f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(0, 95, 184, 0.28));
  letter-spacing: -1.8px;
}

.ff-anime .an-hero-intro {
  font-size: 17px;
  line-height: 1.8;
  max-width: 440px;
  margin: 22px 0 28px;
  color: var(--ink-secondary);
}

.ff-anime .ff-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ff-anime .an-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 850;
  color: var(--ink-muted);
}

.ff-anime .an-hero-meta span + span:before {
  content: '✦';
  color: var(--accent-gold);
  margin-right: 14px;
}

/* Party Illustration on the Right */
.ff-anime .an-hero-party {
  align-self: end;
  position: relative;
  padding-bottom: 20px;
  min-width: 0;
}

.ff-anime .an-hero-party > img {
  max-width: none;
  width: 130%;
  height: auto;
  margin-left: -15%;
  filter: drop-shadow(0 20px 30px rgba(15, 39, 68, 0.25));
  transition: transform 0.4s ease;
}

.ff-anime .an-hero-party:hover > img {
  transform: scale(1.015);
}

/* Floating Glass Party Note */
.ff-anime .an-party-note {
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  position: absolute;
  bottom: 30px;
  left: -20px;
  z-index: 4;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 39, 68, 0.12);
  animation: noteFloat 5s ease-in-out infinite;
}

@keyframes noteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.ff-anime .an-party-note .an-icon {
  width: 26px;
  height: 26px;
  color: #f43f5e;
  filter: drop-shadow(0 2px 6px rgba(244, 63, 94, 0.35));
}

.ff-anime .an-party-note strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink-primary);
}

.ff-anime .an-party-note small {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
}

.ff-anime .an-orbit {
  display: block;
  position: absolute;
  font-size: 26px;
  pointer-events: none;
  z-index: 5;
  animation: starTwinkleFloat 4s ease-in-out infinite alternate;
}

.ff-anime .an-orbit-one {
  top: 14%;
  right: 14%;
  color: #ffc825;
  text-shadow: 0 0 12px rgba(255, 200, 37, 0.95), 0 0 26px rgba(255, 200, 37, 0.55);
  animation-delay: 0s;
}

.ff-anime .an-orbit-two {
  top: 48%;
  left: -12px;
  font-size: 32px;
  color: #00d4ff;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.95), 0 0 28px rgba(0, 212, 255, 0.55);
  animation-delay: 2s;
}

@keyframes starTwinkleFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.9);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-8px) rotate(45deg) scale(1.18);
    opacity: 1;
  }
  100% {
    transform: translateY(-4px) rotate(90deg) scale(0.85);
    opacity: 0.8;
  }
}

.ff-anime .an-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  width: max-content;
  margin: 15px auto 0;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.ff-anime .an-scroll:hover {
  color: var(--primary);
  background: #ffffff;
  transform: translateY(2px);
}

.ff-anime .an-scroll .an-icon {
  width: 18px;
  height: 18px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── World Strip (Floating Glass Feature Bar) ── */
.ff-anime .ff-world-strip {
  position: relative;
  z-index: 10;
  margin-top: -30px;
}

.ff-anime .ff-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 24px 20px;
}

.ff-anime .ff-strip-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-right: 1px solid rgba(14, 165, 233, 0.12);
  padding: 10px 20px;
  transition: transform 0.2s ease;
}

.ff-anime .ff-strip-grid > div:last-child {
  border-right: 0;
}

.ff-anime .ff-strip-grid > div:hover {
  transform: translateY(-2px);
}

.ff-anime .ff-strip-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12);
  flex-shrink: 0;
}

.ff-anime .ff-strip-icon img {
  width: 32px;
  height: 32px;
}

.ff-anime .ff-strip-grid strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink-primary);
}

.ff-anime .ff-strip-grid small {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ── Discover Section ("Pequenos encontros. Grandes aventuras.") ── */
.ff-anime .an-world-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}

.ff-anime .an-world-photo {
  position: relative;
  height: 480px;
  margin: 0;
  border-radius: 20px;
  border: 3px solid #ffffff;
  box-shadow:
    0 24px 60px -10px rgba(10, 35, 75, 0.22),
    0 8px 24px -6px rgba(0, 140, 255, 0.18),
    0 0 0 1px rgba(0, 200, 255, 0.25);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ff-anime .an-world-photo:hover {
  transform: translateY(-4px);
  box-shadow:
    0 32px 70px -10px rgba(10, 35, 75, 0.3),
    0 0 25px rgba(0, 200, 255, 0.3);
}

.ff-anime .an-world-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ff-anime .an-world-photo:hover img {
  transform: scale(1.04);
}

.ff-anime .an-world-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 60px 30px 28px;
  background: linear-gradient(0deg, rgba(11, 26, 46, 0.95) 0%, rgba(11, 26, 46, 0.6) 60%, transparent 100%);
  color: #fff;
  z-index: 5;
}

.ff-anime .an-world-photo .an-tag {
  background: rgba(14, 165, 233, 0.25);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.3);
  margin-bottom: 8px;
}

.ff-anime .an-world-photo strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  margin: 6px 0;
}

.ff-anime .an-world-photo small {
  font-size: 12px;
  color: #bae6fd;
}

.ff-anime .an-world-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ff-anime .an-world-features article {
  display: flex;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.ff-anime .an-world-features article:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.25);
}

.ff-anime .an-feature-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.1);
}

.ff-anime .an-feature-icon img {
  width: 30px;
  height: 30px;
}

.ff-anime .an-world-features h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--ink-primary);
}

.ff-anime .an-world-features p {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.ff-anime .ff-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  margin-top: 10px;
  font-size: 15px;
  transition: gap 0.2s ease;
}

.ff-anime .ff-text-link:hover {
  color: var(--primary-hover);
  gap: 10px;
}

/* ── Classes Showcase ("Escolha o seu destino") ── */
.ff-anime .ff-classes {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 200, 255, 0.26) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(14, 165, 233, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.22) 0%, transparent 40%),
    linear-gradient(180deg, #0b2240 0%, #0e2d54 48%, #091a32 100%);
  color: #e2e8f0;
  border-top: 1px solid rgba(0, 200, 255, 0.38);
  border-bottom: 1px solid rgba(0, 200, 255, 0.28);
  box-shadow: 0 -12px 35px rgba(0, 200, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 35px 70px rgba(0, 0, 0, 0.3);
}

.ff-anime .ff-classes .ff-section {
  padding-block: 85px 65px;
}

.ff-anime .ff-classes .ff-section-heading h2 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ff-anime .ff-classes .ff-section-heading > p {
  color: #94a3b8;
}

.ff-anime .ff-classes .ff-eyebrow {color: #89d8ff; background: none; box-shadow: none;}

/* Job Tabs Bar */
.ff-anime .ff-job-select {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.ff-anime .ff-job-select button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 14px;
  background: rgba(16, 42, 74, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ff-anime .ff-job-select button img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: grayscale(0.2) opacity(0.85);
  transition: all 0.25s ease;
}

.ff-anime .ff-job-select button:hover {
  background: rgba(24, 60, 105, 0.85);
  border-color: rgba(0, 200, 255, 0.55);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 200, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ff-anime .ff-job-select button:hover img {
  filter: none;
  transform: scale(1.08);
}

.ff-anime .ff-job-select button[aria-pressed='true'] {
  background: linear-gradient(135deg, #247bb0, #193c61);
  color: #fff; border-color: #efc351;
  box-shadow: inset 0 -3px #efc351, 0 6px 18px #06182c40;
}

.ff-anime .ff-job-select button[aria-pressed='true'] img {
  filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.85));
  transform: scale(1.14);
}

/* Job Stage */
.ff-anime .ff-job-profile {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 620px;
  align-items: center;
  gap: 40px;
  position: relative;
}

.ff-anime .ff-job-copy {
  padding: 30px 0;
  position: relative;
  z-index: 2;
}

.ff-anime .ff-job-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ff-anime .ff-job-tier-badge,
.ff-anime .ff-job-family-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.ff-anime .ff-job-tier-badge {
  background: rgba(255, 200, 37, 0.15);
  color: #ffc825;
  border: 1px solid rgba(255, 200, 37, 0.4);
}

.ff-anime .ff-job-family-badge.ff-family-physical {
  background: rgba(0, 200, 255, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 200, 255, 0.35);
}

.ff-anime .ff-job-family-badge.ff-family-magic {
  background: rgba(56, 189, 248, 0.12);
  color: #b5eaff;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.ff-anime .ff-crystal-eyebrow {
  vertical-align: -3px;
  margin-right: 6px;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.7));
}

.ff-anime .ff-job-copy h3 {
  font-size: 64px;
  font-weight: 1000;
  color: #ffffff;
  letter-spacing: -2px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  margin-bottom: 8px;
}

.ff-anime .ff-job-role {
  display: inline-block;
  color: #fcd34d;
  font-size: 15px;
  font-weight: 850;
  margin: 4px 0 18px;
  padding: 6px 14px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.16) 0%, rgba(251, 191, 36, 0.04) 100%);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
}

.ff-anime .ff-job-description {
  color: #cbd5e1;
  line-height: 1.85;
  font-size: 16px;
  max-width: 480px;
}

.ff-anime .ff-job-branches {
  border-left: 3px solid #00c8ff;
  padding: 8px 0 8px 18px;
  margin: 22px 0;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.08) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
}

.ff-anime .ff-job-branches > span,
.ff-anime .ff-job-evolution > span {
  display: block;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 900;
  color: #38bdf8;
  margin-bottom: 6px;
}

.ff-anime .ff-job-branches p {
  color: #e2e8f0;
  font-size: 14px;
}

.ff-anime .ff-job-evolution {
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 28px;
}

/* Character Showcase Container with 3D Celestial Pedestal */
.ff-anime .ff-job-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 480px;
  min-height: 580px;
  margin: 0 auto;
  overflow: visible;
  isolation: isolate;
}

.ff-anime .ff-job-pedestal {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 140px;
  pointer-events: none;
  z-index: 1;
}

.ff-anime .ff-pedestal-rune {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 200, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.35), inset 0 0 25px rgba(255, 200, 37, 0.25);
  transform: perspective(400px) rotateX(68deg);
  animation: none;
  background: radial-gradient(ellipse at center, rgba(0, 200, 255, 0.22) 0%, rgba(9, 26, 46, 0.5) 60%, transparent 75%);
}

.ff-anime .ff-pedestal-glow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 200, 255, 0.45) 0%, rgba(255, 200, 37, 0.2) 40%, transparent 70%);
  filter: blur(15px);
  animation: none;
}



@keyframes auraPulse {
  0% { transform: translateX(-50%) scale(0.92); opacity: 0.75; }
  100% { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

@keyframes jobFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.ff-anime .ff-job-art picture {
  display: block;
  width: 100%;
  position: relative;
  z-index: 2;
}

.ff-anime .ff-job-art img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  max-height: 560px;
  margin: 0 auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(0, 200, 255, 0.25));
  animation: jobFloat 4.5s ease-in-out infinite alternate;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.ff-anime .ff-class-points {
  padding: 16px 24px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  background: rgba(13, 34, 58, 0.5);
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  margin-top: 24px;
}

.ff-anime .an-class-history {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 18px;
}

.ff-anime .an-class-history summary {
  cursor: pointer;
  font-weight: 850;
  color: #38bdf8;
}

.ff-anime .an-class-history p {
  margin-top: 8px;
  max-width: 900px;
}

/* ── Real Game Screenshots & Lightbox ── */
.ff-anime .ff-gallery-feature {
  position: relative;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
  border-radius: 20px;
}

.ff-anime .ff-gallery-feature > a {
  display: block;
  position: relative;
  aspect-ratio: 2.1/1;
  border-radius: 14px;
  overflow: hidden;
}

.ff-anime #gallery-feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ff-anime .ff-gallery-feature:hover #gallery-feature-image {
  transform: scale(1.02);
}

.ff-anime .ff-gallery-feature-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 80px 36px 32px;
  background: linear-gradient(0deg, rgba(11, 26, 46, 0.95) 0%, rgba(11, 26, 46, 0.6) 60%, transparent 100%);
  color: #fff;
}

.ff-anime .ff-gallery-feature-caption small {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: #7dd3fc;
  font-weight: 900;
}

.ff-anime .ff-gallery-feature-caption strong {
  display: block;
  font-size: 32px;
  font-family: var(--font-display);
  font-weight: 950;
  margin-top: 6px;
}

.ff-anime .ff-gallery-feature-caption > span {
  font-size: 13px;
  color: #fcd34d;
  font-weight: 800;
}

.ff-anime .ff-gallery-controls {
  position: absolute;
  right: 30px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.ff-anime .ff-gallery-controls button {
  width: 44px;
  height: 44px;
  background: rgba(14, 165, 233, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 20px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  transition: all 0.2s ease;
}

.ff-anime .ff-gallery-controls button:hover {
  background: var(--primary-hover);
  transform: scale(1.08);
}

.ff-anime .an-gallery-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.ff-anime .an-gallery-card {
  position: relative;
  display: block;
  aspect-ratio: 1.4/1;
  border-radius: 12px;
  border: 2px solid #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.ff-anime .an-gallery-card.is-featured {
  outline: 3px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.ff-anime .an-gallery-card:hover {
  transform: translateY(-4px) scale(1.03);
  outline: 3px solid var(--primary-light);
  box-shadow: var(--shadow-md);
}

.ff-anime .an-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ff-anime .an-gallery-card:hover img {
  transform: scale(1.08);
}

.ff-anime .an-gallery-caption {
  display: none;
}

.ff-anime .an-gallery-zoom {
  position: absolute;
  right: 6px;
  bottom: 6px;
  color: #fff;
  background: rgba(15, 39, 68, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 4px;
  display: flex;
}

.ff-anime .an-gallery-zoom .an-icon {
  width: 16px;
  height: 16px;
}

.ff-anime .an-gallery-credit {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 20px;
  text-align: center;
}

/* Lightbox Dialog */
.ff-anime .an-lightbox {
  position: fixed;
  inset: 0;
  margin: auto !important;
  width: min(92vw, 1200px);
  max-height: 90vh;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(11, 26, 46, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 200, 255, 0.2);
  outline: none;
  z-index: 99999;
}

.ff-anime .an-lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ff-anime .an-lightbox::backdrop {
  background: rgba(5, 13, 24, 0.85);
  backdrop-filter: blur(8px);
}

.ff-anime .an-lightbox > img {
  width: auto;
  max-width: 100%;
  max-height: calc(90vh - 100px);
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.ff-anime .an-lightbox-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  color: white;
  background: rgba(14, 165, 233, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.ff-anime .an-lightbox-close:hover {
  background: #f43f5e;
  transform: rotate(90deg);
}

.ff-anime .an-lightbox-close:focus,
.ff-anime .an-lightbox-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.6);
}

.ff-anime .an-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.ff-anime .an-lightbox-footer button {
  width: 44px;
  height: 44px;
  background: rgba(14, 165, 233, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 20px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.ff-anime .an-lightbox-footer button:hover {
  background: var(--primary);
  transform: scale(1.08);
}

/* =========================================================
   DEDICATED RANKING PAGE (HALL DA FAMA)
   ========================================================= */
.ff-anime.ff-ranking-page,
.ff-anime .ff-ranking-page {
  padding-top: 82px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(0, 200, 255, 0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, #f0f7ff 0%, #ffffff 40%, #f8fafc 100%);
}

.ff-anime .ff-rankpage-hero {
  padding: 55px 0 35px;
  text-align: center;
  position: relative;
}

.ff-anime .ff-rankpage-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.ff-anime .ff-rankpage-hero h1 {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 1000;
  color: var(--ink-primary);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 12px 0 14px;
  text-shadow: 0 1px 3px rgba(15, 39, 68, 0.12);
}

.ff-anime .ff-rankpage-subtitle {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 20px;
}

.ff-anime .ff-rankpage-meta-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ff-anime .ff-rank-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.05);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-secondary);
}

.ff-anime .ff-rank-tag-pill .an-icon {
  width: 14px;
  height: 14px;
  color: #0284c7;
}

.ff-anime .ff-rankpage-content {
  padding-bottom: 90px;
}

.ff-anime .ff-rank-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 39, 68, 0.06);
  margin-bottom: 32px;
}

.ff-anime .ff-rank-badge-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ff-anime .ff-rank-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 14px;
  font-weight: 900;
  color: #b45309;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
  letter-spacing: 0.3px;
}

.ff-anime .ff-rank-mode-pill img {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

.ff-anime .ff-rank-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
}

.ff-anime .ff-rank-search-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
  color: var(--ink-muted);
}

.ff-anime .ff-rank-search-icon .an-icon {
  width: 16px;
  height: 16px;
}

.ff-anime #rankSearchInput {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 9999px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  outline: none;
  transition: all 0.2s ease;
}

.ff-anime #rankSearchInput:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Podium Grid */
.ff-anime .ff-podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 22px;
  align-items: end;
  margin-bottom: 36px;
}

.ff-anime .ff-podium-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  text-align: center;
  border: 2px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 16px 36px rgba(15, 39, 68, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ff-anime .ff-podium-card:hover {
  transform: translateY(-5px);
}

.ff-anime .ff-podium-gold {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 55%);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.18), 0 0 0 1px rgba(245, 158, 11, 0.3);
  padding-top: 36px;
}

.ff-anime .ff-podium-gold:hover {
  box-shadow: 0 25px 60px rgba(245, 158, 11, 0.28), 0 0 25px rgba(255, 200, 37, 0.35);
}

.ff-anime .ff-podium-silver {
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
}

.ff-anime .ff-podium-bronze {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 55%);
}

.ff-anime .ff-podium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 12px;
  font-weight: 1000;
  margin-bottom: 12px;
}

.ff-anime .ff-podium-gold .ff-podium-badge {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.ff-anime .ff-podium-avatar {
  margin: 0 auto 12px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
}

.ff-anime .ff-podium-gold .ff-podium-avatar {
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.3);
}

.ff-anime .ff-podium-name {
  font-size: 20px;
  font-weight: 950;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.ff-anime .ff-podium-server {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 750;
  margin-bottom: 14px;
}

.ff-anime .ff-podium-stat {
  padding: 10px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.14);
}

.ff-anime .ff-podium-gold .ff-podium-stat {
  background: rgba(254, 243, 199, 0.6);
  border-color: rgba(245, 158, 11, 0.25);
}

.ff-anime .ff-podium-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 1000;
  color: #0284c7;
  line-height: 1;
}

.ff-anime .ff-podium-gold .ff-podium-stat strong {
  color: #b45309;
}

.ff-anime .ff-podium-stat small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Full Table */
.ff-anime .ff-rank-table-wrap {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 16px 45px rgba(15, 39, 68, 0.06);
  overflow: hidden;
  margin-bottom: 36px;
}

.ff-anime .ff-rank-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ff-anime .ff-rank-table thead {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(14, 165, 233, 0.16);
}

.ff-anime .ff-rank-table th {
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-secondary);
}

.ff-anime .ff-rank-table tbody tr {
  border-bottom: 1px solid rgba(14, 165, 233, 0.08);
  transition: all 0.2s ease;
}

.ff-anime .ff-rank-table tbody tr:hover {
  background: rgba(14, 165, 233, 0.06);
  transform: translateX(3px);
}

.ff-anime .ff-rank-table td {
  padding: 14px 20px;
  vertical-align: middle;
}

.ff-anime .ff-row-rank {
  font-size: 14px;
  font-weight: 950;
  color: var(--ink-secondary);
}

.ff-anime .ff-rank-1 { color: #b45309; font-weight: 1000; }
.ff-anime .ff-rank-2 { color: #475569; font-weight: 1000; }
.ff-anime .ff-rank-3 { color: #c2410c; font-weight: 1000; }

.ff-anime .ff-row-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink-primary);
}

.ff-anime .ff-server-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  font-size: 11.5px;
  font-weight: 800;
  color: #0284c7;
}

.ff-anime .ff-row-val strong {
  font-size: 17px;
  font-weight: 950;
  color: #0284c7;
}

.ff-anime .ff-row-val small {
  font-size: 12px;
  color: var(--ink-muted);
  margin-left: 4px;
}

.ff-anime .ff-rank-empty-card {
  padding: 60px 20px;
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 16px 45px rgba(15, 39, 68, 0.06);
  margin-bottom: 36px;
}

.ff-anime .ff-rank-empty-card img {
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.25));
}

.ff-anime .ff-rank-empty-card h3 {
  font-size: 22px;
  font-weight: 950;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.ff-anime .ff-rank-empty-card p {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Bottom CTA Card */
.ff-anime .ff-rankpage-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 36px 40px;
  background: linear-gradient(135deg, #0b2240 0%, #0e2d54 50%, #091a32 100%);
  border-radius: 24px;
  border: 1px solid rgba(0, 200, 255, 0.35);
  box-shadow: 0 20px 50px rgba(11, 34, 64, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ff-anime .ff-rankpage-cta-box h3 {
  font-size: 24px;
  font-weight: 950;
  color: #ffffff;
  margin-bottom: 6px;
}

.ff-anime .ff-rankpage-cta-box p {
  font-size: 14px;
  color: #bae6fd;
  max-width: 540px;
  margin: 0;
}

.ff-anime .ff-rankpage-cta-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ff-anime .ff-rankpage-cta-btns .ff-btn-glass {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.ff-anime .ff-rankpage-cta-btns .ff-btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff;
}

/* ── Community Banner ("Venha pela aventura") ── */
.ff-anime .an-community {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  background:
    linear-gradient(95deg, rgba(224, 242, 254, 0.96) 0%, rgba(224, 242, 254, 0.88) 50%, rgba(224, 242, 254, 0.4) 100%),
    url('../img/gallery/village-sunset.webp') center/cover;
  padding: 60px;
  min-height: 480px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.ff-anime .an-community > div {
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.ff-anime .an-community h2 {
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: var(--ink-primary);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(15, 39, 68, 0.1);
}

.ff-anime .an-community p:not(.ff-eyebrow) {
  margin: 18px 0 28px;
  line-height: 1.8;
  color: var(--ink-secondary);
  font-size: 16px;
  max-width: 460px;
}

.ff-anime .an-community > img {
  position: absolute;
  top: 0;
  right: 0;
  width: 56%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  filter: none;
}

/* ── Start Journey Steps ("Nos vemos entre as nuvens") ── */
.ff-anime .ff-start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 20px 0;
  align-items: center;
}

.ff-anime .ff-start h2 {
  font-size: 44px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  color: var(--ink-primary);
  text-shadow: 0 1px 3px rgba(15, 39, 68, 0.12);
}

.ff-anime .ff-start p {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.ff-anime .ff-steps {
  list-style: none;
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.ff-anime .ff-steps li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.ff-anime .ff-steps li:hover {
  transform: translateX(6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.ff-anime .ff-steps li > span {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  height: 52px;
  font-size: 22px;
  font-weight: 950;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.ff-anime .ff-steps h3 {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--ink-primary);
  text-shadow: 0 1px 2px rgba(15, 39, 68, 0.08);
}

.ff-anime .ff-steps p {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0;
}

/* ── Footer ── */
.ff-anime .site-footer {
  background: #091728;
  color: #94a3b8;
  border-top: 4px solid var(--accent-gold);
  padding: 55px 20px;
  text-align: center;
}

.ff-anime .footer-brand {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.5px;
}

.ff-anime :is(.footer-copy, .footer-tagline, .ff-footer-community) {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 8px;
}

.ff-anime .site-footer a {
  color: var(--accent-gold-light);
  text-decoration: none;
  font-weight: 800;
  transition: color 0.2s ease;
}

.ff-anime .site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ── Preload Screen ── */
.ff-anime .ff-preload {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  background: #f4f9fd;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ff-anime .ff-preload.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ff-anime .ff-preload-inner {
  text-align: center;
}

.ff-anime .ff-preload-inner img {
  margin: auto;
  filter: drop-shadow(0 6px 20px rgba(14, 165, 233, 0.3));
}

.ff-anime .ff-preload-track {
  height: 4px;
  width: 180px;
  border-radius: 9999px;
  background: #e0f2fe;
  margin: 20px auto;
  overflow: hidden;
}

.ff-anime .ff-preload-track span {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent-gold));
  animation: preloadSlide 1.2s ease-in-out infinite alternate;
}

@keyframes preloadSlide {
  from { transform: translateX(-100%); }
  to { transform: translateX(200%); }
}

.ff-anime .modal-card {
  background: #ffffff;
  color: var(--ink-primary);
  border-radius: 20px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 25px 60px rgba(15, 39, 68, 0.2);
}

/* ── Auth Pages (Login & Register) ── */
.ff-anime .auth-container {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--ff-nav-height, 86px) + 2.5rem) 1.5rem 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 800px 450px at 50% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 70%),
    radial-gradient(circle 600px at 80% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    var(--bg-canvas);
}

.ff-anime .auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 950;
  color: var(--ink-primary);
  transition: transform 0.25s ease;
}

.ff-anime .auth-logo:hover {
  transform: translateY(-2px);
}

.ff-anime .auth-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.35));
}

.ff-anime .auth-logo em {
  font-style: normal;
  color: var(--primary);
}

.ff-anime .auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 24px;
  padding: 2.5rem 2.25rem;
  box-shadow:
    0 24px 60px -10px rgba(15, 39, 68, 0.12),
    0 0 35px rgba(14, 165, 233, 0.14);
  position: relative;
  box-sizing: border-box;
}

.ff-anime .auth-card h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 950;
  color: var(--ink-primary);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 3px rgba(15, 39, 68, 0.1);
}

.ff-anime .auth-subtitle {
  color: var(--ink-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.ff-anime .auth-card .form-group {
  margin-bottom: 18px;
}

.ff-anime .auth-card .form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.ff-anime .auth-card .form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(14, 165, 233, 0.25);
  background: #f8fafc;
  color: var(--ink-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ff-anime .auth-card .form-group input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
}

.ff-anime .auth-card .form-group small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-muted);
}

.ff-anime .auth-card .btn-primary.btn-block {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
}

.ff-anime .auth-card .btn-primary.btn-block:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.45);
}

.ff-anime .auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.ff-anime .auth-footer a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.ff-anime .auth-footer a:hover {
  text-decoration: underline;
}

.ff-anime .auth-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.ff-anime .auth-social-divider::before,
.ff-anime .auth-social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(14, 165, 233, 0.2);
}

.ff-anime .alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
.ff-anime .alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.ff-anime .alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ── News Pages ── */
.ff-anime .news-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: calc(var(--ff-nav-height, 86px) + 2rem) 1.5rem 4rem;
}

.ff-anime .news-hero {
  text-align: center;
  padding: 2.5rem 0 3.5rem;
}

.ff-anime .news-hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 950;
  color: var(--ink-primary);
  margin-bottom: 10px;
  letter-spacing: -0.8px;
}

.ff-anime .news-hero p {
  width: min(100%, 600px);
  margin: 0 auto;
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.ff-anime .news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}

.ff-anime .news-card {
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 39, 68, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ff-anime .news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 16px 36px rgba(15, 39, 68, 0.1), 0 0 20px rgba(14, 165, 233, 0.15);
}

.ff-anime .news-card-image {
  display: block;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #0369a1 0%, #0f2744 100%);
  overflow: hidden;
  position: relative;
}

.ff-anime .news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ff-anime .news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.ff-anime .news-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.6);
}

.ff-anime .news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ff-anime .news-card-date {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 8px;
}

.ff-anime .news-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 10px;
}

.ff-anime .news-card-title a {
  color: var(--ink-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ff-anime .news-card-title a:hover {
  color: var(--primary);
}

.ff-anime .news-card-excerpt {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.ff-anime .news-card-link {
  font-size: 14px;
  font-weight: 850;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.ff-anime .news-card-link:hover {
  gap: 8px;
}

.ff-anime .news-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2.5rem;
}

.ff-anime .news-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--ink-primary);
  background: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: all 0.2s ease;
}

.ff-anime .news-page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.ff-anime .news-page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.ff-anime .news-sidebar-card {
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 39, 68, 0.05);
}

.ff-anime .news-sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--ink-primary);
  margin-bottom: 14px;
}

.ff-anime .news-sidebar-list a {
  color: var(--ink-primary);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ff-anime .news-sidebar-list a:hover {
  color: var(--primary);
}

.ff-anime .news-sidebar-list small {
  color: var(--ink-muted);
  font-size: 12px;
  margin-top: 2px;
}

/* Single News Article */
.ff-anime .news-article {
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(15, 39, 68, 0.06);
}

.ff-anime .news-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 20px;
}

.ff-anime .news-back:hover {
  text-decoration: underline;
}

.ff-anime .news-article-header time {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
}

.ff-anime .news-article-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 950;
  color: var(--ink-primary);
  margin: 8px 0 12px;
  line-height: 1.25;
}

.ff-anime .news-article-author {
  font-size: 14px;
  color: var(--ink-muted);
}

.ff-anime .news-article-content {
  margin-top: 24px;
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.8;
}

/* Logo halo and an interaction-only highlight masked to the artwork. */
.ff-anime .ff-logo-art {display:inline-block;position:relative;width:250px;isolation:isolate;animation:heroLogoFloat 6s ease-in-out infinite;}
.ff-anime .ff-logo-art .rp-hero-logo {width:100%;margin:0;position:relative;z-index:1;}
.ff-anime .ff-logo-art:before {content:'';position:absolute;inset:18% 5%;border-radius:50%;background:radial-gradient(ellipse,#69d9ff77,#ffdc6340 45%,transparent 72%);filter:blur(12px);z-index:0;pointer-events:none;animation:logoHalo 3.5s ease-in-out infinite alternate;}
.ff-anime .ff-logo-art:after {content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(110deg,transparent 40%,#ffffffd9 49%,transparent 58%) 150% 0/300% 100% no-repeat;-webkit-mask:url('../img/logo.png') center/contain no-repeat;mask:url('../img/logo.png') center/contain no-repeat;mix-blend-mode:screen;opacity:0;}
.ff-anime .ff-logo-art:hover:after {animation:logoHighlight .85s ease-out both;}
.ff-anime .ff-logo-art:hover .rp-hero-logo {transform:scale(1.045) rotate(-2deg);filter:drop-shadow(0 12px 18px #123b6940) drop-shadow(0 0 18px #62d6ff88);}
.ff-anime .ff-nav-logo {transition:transform .3s ease,filter .3s ease;}
.ff-anime .nav-brand:is(:hover,:focus-visible) .ff-nav-logo {transform:rotate(-6deg) scale(1.12);filter:drop-shadow(0 0 8px #5acfff99);}
@keyframes logoHalo {from{opacity:.35}to{opacity:.9}}
@keyframes logoHighlight {0%{opacity:0;background-position:150% 0}15%,85%{opacity:.85}100%{opacity:0;background-position:-50% 0}}
/* Class control feedback: light sweep, raised icon and selected diamond. */
.ff-anime :is(.ff-job-select button, .ff-class-family .ff-job-choice) {position:relative;isolation:isolate;overflow:hidden;border-radius:10px;backdrop-filter:none;-webkit-backdrop-filter:none;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease;}
.ff-anime :is(.ff-job-select button, .ff-class-family .ff-job-choice):before {content:'';position:absolute;inset:-30% 0;width:55%;background:linear-gradient(90deg,transparent,#c2efff38,transparent);transform:translateX(-190%) skewX(-20deg);pointer-events:none;z-index:0;}
.ff-anime :is(.ff-job-select button, .ff-class-family .ff-job-choice) > * {position:relative;z-index:1;}
.ff-anime :is(.ff-job-select button, .ff-class-family .ff-job-choice):is(:hover,:focus-visible):before {transform:translateX(290%) skewX(-20deg);transition:transform .7s ease;}
.ff-anime :is(.ff-job-select button, .ff-class-family .ff-job-choice):after {content:'';position:absolute;width:7px;height:7px;top:9px;right:10px;background:#ffdb69;box-shadow:0 0 8px #ffdc6570;transform:rotate(45deg) scale(0);opacity:0;transition:transform .25s ease,opacity .25s ease;pointer-events:none;}
.ff-anime :is(.ff-job-select button, .ff-class-family .ff-job-choice)[aria-pressed='true']:after {transform:rotate(45deg) scale(1);opacity:1;}
.ff-anime :is(.ff-job-select button, .ff-class-family .ff-job-choice):is(:hover,:focus-visible) {transform:translateY(-3px);border-color:#82d8ff;box-shadow:0 8px 18px #04182b66,inset 0 1px #ffffff30;}
.ff-anime :is(.ff-job-select button, .ff-class-family .ff-job-choice)[aria-pressed='true']:is(:hover,:focus-visible) {border-color:#ffe18a;box-shadow:inset 0 -3px #efc351,0 8px 20px #04182b66;}
.ff-anime :is(.ff-job-select button, .ff-class-family .ff-job-choice):is(:hover,:focus-visible) img {transform:translateY(-2px) scale(1.13);filter:drop-shadow(0 3px 6px #61d8ff66);}
.ff-anime :is(.ff-job-select button, .ff-class-family .ff-job-choice):active {transform:translateY(1px) scale(.98);}
.ff-anime .footer-copy .ff-studio-link {color:inherit;font-weight:800;text-decoration:underline;text-decoration-color:#f4c85a70;text-underline-offset:3px;}
.ff-anime .footer-copy .ff-studio-link:hover {color:#f4cf77;}
@media(max-width:600px){.ff-anime .ff-logo-art{width:200px;display:block;margin-inline:auto}.ff-anime .ff-logo-art .rp-hero-logo{width:100%}}

/* ── Responsive Adaptations ── */
@media (max-width: 1280px) {
  .ff-anime .ff-nav-toggle {
    display: block;
    margin-left: auto;
  }
  .ff-anime .nav-links {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: var(--shadow-lg);
    padding: 24px 6%;
    max-height: calc(100dvh - 82px);
    overflow: auto;
  }
  .ff-anime .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .ff-anime :is(.rp-nav-sections, .rp-nav-account) {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .ff-anime .ff-nav-play {
    align-self: flex-start;
    margin: 10px 0;
  }
  .ff-anime .ff-job-select button {
    gap: 7px;
    font-size: 13px;
  }
  .ff-anime .ff-job-select button img {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 1281px) and (max-width: 1700px) {
  .ff-anime .ff-nav-auth .nav-links {
    flex-wrap: wrap;
  }
  .ff-anime .ff-nav-auth .top-nav-inner {
    height: auto;
    min-height: 82px;
  }
  .ff-anime .ff-nav-auth .rp-nav-account {
    flex-wrap: wrap;
  }
}

@media (max-width: 960px) {
  .ff-anime .ff-container {
    width: calc(100% - 40px);
  }
  .ff-anime .ff-section {
    padding-block: 70px;
  }
  .ff-anime .an-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 20px;
  }
  .ff-anime .an-hero h1 {
    font-size: 46px;
  }
  .ff-anime .an-hero-party {
    justify-self: center;
    max-width: 540px;
    width: 100%;
  }
  .ff-anime .an-hero-party > img {
    width: 110%;
    margin-left: -5%;
  }
  .ff-anime .an-party-note {
    position: static;
    margin: 16px auto 0;
    display: flex !important;
  }
  .ff-anime .ff-strip-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ff-anime .ff-strip-grid > div {
    border-right: 0;
    border-bottom: 1px solid rgba(14, 165, 233, 0.12);
    padding-bottom: 16px;
  }
  .ff-anime .ff-strip-grid > div:last-child {
    border-bottom: 0;
  }
  .ff-anime .an-world-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ff-anime .an-world-photo {
    height: 380px;
  }
  .ff-anime .ff-job-select {
    grid-template-columns: repeat(3, 1fr);
  }
  .ff-anime .ff-job-profile {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
  }
  .ff-anime .ff-job-copy {
    padding-top: 20px;
  }
  .ff-anime .ff-job-copy h3 {
    font-size: 52px;
  }
  .ff-anime .an-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ff-anime .ff-ranking-grid {
    grid-template-columns: 1fr;
  }
  .ff-anime .an-community {
    grid-template-columns: 1fr;
    padding: 40px 30px 0;
  }
  .ff-anime .an-community > div {
    padding-bottom: 10px;
  }
  .ff-anime .an-community > img {
    position: relative;
    top: auto;
    right: auto;
    width: calc(100% + 60px);
    height: auto;
    max-width: none;
    margin: 0 -30px;
    align-self: end;
    mask-image: none;
  }
  .ff-anime .ff-start {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .ff-anime .ff-container {
    width: calc(100% - 32px);
  }
  .ff-anime .ff-section {
    padding-block: 55px;
  }
  .ff-anime .top-nav-inner {
    height: 72px;
  }
  .ff-anime .nav-links {
    top: 72px;
  }
  .ff-anime .ff-nav-logo {
    width: 44px;
    height: 44px;
  }
  .ff-anime .rp-nav-title {
    font-size: 16px;
  }
  .ff-anime .an-hero {
    padding-top: 100px;
  }
  .ff-anime .an-hero-copy {
    text-align: center;
  }
  .ff-anime .rp-hero-logo {
    width: 200px;
    margin: 0 auto;
  }
  .ff-anime .an-hero h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
  }
  .ff-anime .an-hero-intro {
    font-size: 15px;
    margin: 16px auto 24px;
  }
  .ff-anime .ff-actions {
    justify-content: center;
  }
  .ff-anime .an-hero-meta {
    justify-content: center;
    font-size: 11px;
  }
  .ff-anime .ff-section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .ff-anime .ff-section-heading h2 {
    font-size: 32px;
  }
  .ff-anime .ff-section-heading > p {
    margin-top: 14px;
    font-size: 14px;
  }
  .ff-anime .ff-job-select {
    grid-template-columns: repeat(2, 1fr);
  }
  .ff-anime .ff-job-copy h3 {
    font-size: 42px;
  }
  .ff-anime .ff-job-art {
    width: 100%;
    max-width: 320px;
    min-height: 420px;
  }
  .ff-anime .ff-job-art img {
    max-height: 400px;
  }
  .ff-anime .ff-job-pedestal {
    width: 260px;
    height: 100px;
  }
  .ff-anime .an-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ff-anime .ff-gallery-feature > a {
    aspect-ratio: 16/10;
  }
  .ff-anime .ff-gallery-feature-caption strong {
    font-size: 22px;
  }
  .ff-anime .ff-gallery-controls {
    bottom: 16px;
    right: 16px;
  }
  .ff-anime .an-community h2 {
    font-size: 30px;
  }
  .ff-anime .ff-start h2 {
    font-size: 32px;
  }
}

/* Original brand art: destination panorama and map-carrying companion. */
.ff-anime .ff-sky-chapter {position: relative; isolation: isolate; min-height: 420px; display: grid; align-items: center; overflow: hidden; background: #47683c; border-block: 1px solid #b3d7ed;}
.ff-anime .ff-sky-chapter-art {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -3; animation: horizonDrift 18s ease-in-out infinite alternate;}
.ff-anime .ff-sky-chapter:before {content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#14362dc9, #14362d55 40%, transparent 65%); z-index: -2;}
.ff-anime .ff-sky-chapter:after {content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#def4ff28,transparent 50%); mix-blend-mode: screen; z-index: -1; pointer-events: none;}
.ff-anime .ff-sky-chapter-copy {max-width: 410px; padding-block: 55px; color: #fff;}
.ff-anime .ff-sky-chapter .ff-eyebrow {color: #e1f5ff;}
.ff-anime .ff-sky-chapter h2 {font-size: clamp(34px,3.4vw,48px); font-weight: 950; line-height: 1.08; letter-spacing: -1px; text-shadow: 0 2px 6px #103b6c50;}
.ff-anime .ff-sky-chapter p:not(.ff-eyebrow) {font-size: 15px; line-height: 1.8; margin: 20px 0; max-width: 340px; text-shadow: 0 1px 3px #103b6c50;}
.ff-anime .ff-sky-chapter .ff-text-link {color: #fff4bd; border-bottom: 1px solid #f8d977; padding-bottom: 5px;}
.ff-anime .ff-start-companion {display: flex; align-items: center; gap: 14px; margin: 6px 0 25px;}
.ff-anime .ff-start-companion img {width: 145px; height: auto; flex: 0 0 145px; filter: drop-shadow(0 9px 8px #173d5c20); animation: companionFloat 4s ease-in-out infinite alternate;}
.ff-anime .ff-start-companion p {margin: 0; max-width: 270px;}
.ff-anime .ff-art-loading {opacity: 0;}
.ff-anime .an-community {box-shadow: 0 12px 35px #204d6f18;}
.ff-anime .an-community > img {mask-image: linear-gradient(90deg,transparent,#000 9%);}
.ff-anime .ff-job-art img {filter: drop-shadow(0 14px 18px #02152d66);}
.ff-anime .ff-gallery-feature-caption strong {text-shadow: 0 2px 4px #071b3090; padding-right: 170px;}
@keyframes horizonDrift {from {transform: scale(1.025) translateX(0);} to {transform: scale(1.065) translateX(-.8%);}}
@keyframes companionFloat {from {transform: translateY(0) rotate(-2deg);} to {transform: translateY(-8px) rotate(2deg);}}
/* Pause decorative loops only while the tab is hidden. */
.ff-anime .ff-page-hidden *, .ff-anime .ff-page-hidden *:before, .ff-anime .ff-page-hidden *:after {animation-play-state: paused !important;}
.ff-anime .ff-effects-off *, .ff-anime .ff-effects-off *:before, .ff-anime .ff-effects-off *:after {animation: none !important; transition: none !important;}
.ff-anime .ff-effects-off .ff-hero-particles {display: none;}
@media(max-width: 600px) {
  .ff-anime .ff-sky-chapter {min-height: 560px; align-items: end;}
  .ff-anime .ff-sky-chapter-art {object-position: 73% center;}
  .ff-anime .ff-sky-chapter:before {background: linear-gradient(0deg,#163529ed 0%,#16352988 50%,transparent 80%);}
  .ff-anime .ff-sky-chapter-copy {padding: 270px 0 35px;}
  .ff-anime .ff-sky-chapter h2 {font-size: 36px;}
  .ff-anime .ff-start-companion img {width: 110px; flex-basis: 110px;}
  .ff-anime .ff-gallery-feature-caption {padding: 80px 18px 75px;}
  .ff-anime .ff-gallery-feature-caption strong {padding-right: 0;}
  .ff-anime .ff-gallery-feature > a {min-height: 300px;}
  .ff-anime .ff-gallery-controls {right: auto; left: 24px;}
}

/* Ranking on narrow screens: keep the podium and all four columns visible. */
.ff-anime .ff-podium-card {min-width: 0;}
.ff-anime .ff-podium-name {overflow-wrap: anywhere;}
.ff-anime .ff-podium-avatar .an-icon {width: 30px; height: 30px; color: #237ca8;}
.ff-anime .ff-podium-gold .ff-podium-avatar .an-icon {color: #af7a11;}
.ff-anime .ff-podium-medal .an-icon {width: 16px; height: 16px;}
.ff-anime .ff-rank-mode-pill .an-icon {width: 22px; height: 22px;}
@media(max-width: 600px) {
  .ff-anime .ff-rank-controls {padding: 20px 16px;}
  .ff-anime .ff-rank-search {min-width: 0; width: 100%;}
  .ff-anime .ff-podium-grid {grid-template-columns: 1fr; gap: 12px; align-items: stretch;}
  .ff-anime .ff-podium-card {display: grid; grid-template-columns: 48px minmax(0,1fr) 58px; column-gap: 12px; align-items: center; padding: 16px 12px; text-align: left; border-radius: 14px;}
  .ff-anime .ff-podium-gold {order: -1;}
  .ff-anime .ff-podium-badge {grid-column: 1; grid-row: 1/3; justify-content: center; padding: 6px; margin: 0; font-size: 12px;}
  .ff-anime .ff-podium-medal, .ff-anime .ff-podium-avatar {display: none;}
  .ff-anime .ff-podium-name {grid-column: 2; grid-row: 1; font-size: 17px; margin: 0;}
  .ff-anime .ff-podium-server {grid-column: 2; grid-row: 2; margin: 4px 0 0; font-size: 11px;}
  .ff-anime .ff-podium-stat {grid-column: 3; grid-row: 1/3; padding: 9px 3px; text-align: center;}
  .ff-anime .ff-podium-stat strong {font-size: 23px;}
  .ff-anime .ff-podium-stat small {font-size: 9px;}
  .ff-anime .ff-rank-table {table-layout: fixed;}
  .ff-anime .ff-rank-table :is(th,td) {padding: 14px 5px;}
  .ff-anime .ff-rank-table th {font-size: 9px; letter-spacing: 0;}
  .ff-anime .ff-rank-table th:first-child {width: 45px !important;}
  .ff-anime .ff-rank-table th:nth-child(3) {width: 67px;}
  .ff-anime .ff-rank-table th:last-child {width: 48px;}
  .ff-anime .ff-row-name {font-size: 12px; overflow-wrap: anywhere;}
  .ff-anime .ff-row-rank {font-size: 12px;}
  .ff-anime .ff-server-tag {font-size: 9px; padding: 3px 4px;}
  .ff-anime .ff-row-val strong {font-size: 15px;}
  .ff-anime .ff-row-val small {display: none;}
  .ff-anime .ff-rankpage-cta-box {padding: 27px 22px;}
}

/* ── Motion policy ── */
@media (prefers-reduced-motion: reduce) {
  html:has(body.ff-anime) { scroll-behavior: auto; }
}

@media(prefers-reduced-motion:reduce){.ff-anime .ff-art-loading{opacity:1}}

/* Brand signature above the genre badge and independent-project notice. */
.ff-anime .an-hero-copy .ff-logo-art {display:block; margin:0 0 16px;}
.ff-anime .ff-project-notice {max-width:960px; margin:0 auto 32px; padding-bottom:26px; border-bottom:1px solid #ffffff1c; text-align:left;}
.ff-anime .ff-project-notice-title {font-size:13px; font-weight:900; color:#dae9f3; margin-bottom:10px;}
.ff-anime .ff-project-notice p:not(.ff-project-notice-title) {font-size:12px; line-height:1.85; color:#a9becf; margin-top:8px;}
@media(max-width:600px){.ff-anime .an-hero-copy .ff-logo-art{margin:0 auto 16px;}}

@media(max-width:960px){.ff-anime .an-community{gap:20px;min-height:0}.ff-anime .an-community.ff-section{padding-bottom:0}.ff-anime .an-community > img{mask-image:none}}

/* ── Floating Fortress logo palette ──
   Copper/gold lettering, forest-green banners and deep navy outlines from
   the replacement logo at assets/img/logo.png.  These tokens also feed the
   account dashboard in style.css through normal custom-property inheritance.
*/
body.ff-anime {
  --primary: #376d5c;
  --primary-hover: #285346;
  --primary-light: #7ca68c;
  --primary-glow: rgba(55, 109, 92, 0.30);
  --accent-gold: #c5672b;
  --accent-gold-light: #e0a14b;
  --accent-gold-glow: rgba(197, 103, 43, 0.34);
  --ink-primary: #1b2930;
  --ink-secondary: #4b5f5b;
  --ink-muted: #74817b;
  --bg-canvas: #f7f2e9;
  --surface-card: #fffdf8;
  --surface-glass: rgba(255, 253, 248, 0.84);
  --border-glass: rgba(197, 103, 43, 0.18);
  --border-subtle: rgba(55, 109, 92, 0.18);
  --shadow-sm: 0 2px 8px rgba(27, 41, 48, 0.07);
  --shadow-md: 0 10px 25px -4px rgba(27, 41, 48, 0.11), 0 4px 10px -2px rgba(27, 41, 48, 0.05);
  --shadow-lg: 0 20px 35px -6px rgba(27, 41, 48, 0.16), 0 8px 16px -4px rgba(27, 41, 48, 0.08);

  /* Shared account/dashboard variables from style.css. */
  --bg-primary: #f7f2e9;
  --bg-surface: #e9efe5;
  --bg-card: #fffdf8;
  --bg-card-hover: #fbf5ea;
  --border: rgba(39, 69, 61, 0.10);
  --border-light: rgba(197, 103, 43, 0.20);
  --text-primary: #1b2930;
  --text-secondary: #4b5f5b;
  --text-dim: #74817b;
  --accent: #c5672b;
  --accent-hover: #a94f20;
  --accent-glow: rgba(197, 103, 43, 0.28);
  --accent-soft: rgba(197, 103, 43, 0.10);
  --accent-alt: #376d5c;
  --accent-alt-glow: rgba(55, 109, 92, 0.25);
  --gold: #c5672b;
  --gold-glow: rgba(197, 103, 43, 0.30);
  --green: #3c8b62;
}

.ff-anime .top-nav {
  background: rgba(250, 247, 239, 0.96);
  border-bottom-color: rgba(197, 103, 43, 0.22);
}
.ff-anime .nav-brand { color: #285346; }
.ff-anime .nav-link { color: #4b5f5b; }
.ff-anime .nav-link:hover,
.ff-anime .nav-link.is-active { color: #a94f20; background: rgba(197, 103, 43, 0.10); }
.ff-anime .ff-community-link,
.ff-anime .ff-community-link:hover { color: #376d5c !important; }
.ff-anime .ff-community-link::after { background: #c5672b; box-shadow: 0 0 8px rgba(197, 103, 43, 0.45); }
.ff-anime .ff-nav-play {
  background: linear-gradient(135deg, #376d5c 0%, #4f8a6c 100%);
  box-shadow: 0 4px 15px rgba(55, 109, 92, 0.30);
}
.ff-anime .ff-nav-play:hover {
  background: linear-gradient(135deg, #285346 0%, #376d5c 100%);
  box-shadow: 0 6px 20px rgba(55, 109, 92, 0.42);
}
.ff-anime .lang-btn {
  background: rgba(255, 253, 248, 0.95);
  border-color: rgba(197, 103, 43, 0.22);
  color: #4b5f5b;
}
.ff-anime .lang-btn:hover { border-color: #c5672b; background: #fffdf8; }

.ff-anime .an-hero {
  background: linear-gradient(180deg, #dfe9dc 0%, #f0eee4 52%, var(--bg-canvas) 100%);
}
.ff-anime .ff-service-notice {
  background: linear-gradient(90deg, #e5eee2, #fbf4e7);
  border-bottom-color: rgba(55, 109, 92, 0.22);
  color: #285346;
}
.ff-anime .ff-btn-primary {
  background: linear-gradient(135deg, #c5672b 0%, #e0a14b 50%, #c5672b 100%);
  color: #fffaf0;
}
.ff-anime .ff-btn-primary:hover {
  background: linear-gradient(135deg, #b25521 0%, #efb85d 50%, #b25521 100%);
}
.ff-anime .ff-btn-glass {
  border-color: rgba(55, 109, 92, 0.32);
  box-shadow: 0 4px 16px rgba(55, 109, 92, 0.12);
}

/* Account pages use the same logo-derived colors as the public home page. */
.ff-anime .dashboard-hero {
  background: linear-gradient(120deg, rgba(55, 109, 92, 0.14), rgba(197, 103, 43, 0.08) 68%, var(--bg-card));
  border-color: rgba(197, 103, 43, 0.20);
}
.ff-anime .dashboard-security-card {
  background: linear-gradient(115deg, var(--bg-card), rgba(55, 109, 92, 0.07));
}
.ff-anime .dashboard-card-link,
.ff-anime .dashboard-shortcuts a:hover { border-color: rgba(197, 103, 43, 0.28); }
.ff-anime .auth-card .btn-primary.btn-block {
  background: linear-gradient(135deg, #376d5c 0%, #4f8a6c 100%);
  box-shadow: 0 8px 20px rgba(55, 109, 92, 0.30);
}
.ff-anime .auth-card .btn-primary.btn-block:hover {
  background: linear-gradient(135deg, #285346 0%, #376d5c 100%);
  box-shadow: 0 12px 26px rgba(55, 109, 92, 0.40);
}

/* ── CloudCore Studio x Floating Fortress: dark brand shell ──
   CloudCore supplies the near-black/violet/cyan foundation.  Floating
   Fortress keeps copper/gold for actions and logo accents, with green used
   only as a supporting game-world color.
*/
body.ff-anime {
  --primary: #7c5cff;
  --primary-hover: #9b84ff;
  --primary-light: #22d3ee;
  --primary-glow: rgba(124, 92, 255, 0.38);
  --accent-gold: #fbbf24;
  --accent-gold-light: #ffd978;
  --accent-gold-glow: rgba(251, 191, 36, 0.34);
  --ink-primary: #f2f2fb;
  --ink-secondary: #c4c5da;
  --ink-muted: #9294ad;
  --bg-canvas: #0a0a14;
  --surface-card: #111022;
  --surface-glass: rgba(17, 16, 34, 0.82);
  --border-glass: rgba(124, 92, 255, 0.24);
  --border-subtle: rgba(34, 211, 238, 0.18);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.32), 0 0 22px rgba(124, 92, 255, 0.08);
  --shadow-lg: 0 24px 55px rgba(0, 0, 0, 0.42), 0 0 35px rgba(124, 92, 255, 0.10);

  /* Shared account/dashboard variables from style.css. */
  --bg-primary: #0a0a14;
  --bg-surface: #0e0e1c;
  --bg-card: #101022;
  --bg-card-hover: #171736;
  --border: rgba(255, 255, 255, 0.10);
  --border-light: rgba(124, 92, 255, 0.28);
  --text-primary: #f2f2fb;
  --text-secondary: #c4c5da;
  --text-dim: #9294ad;
  --accent: #fbbf24;
  --accent-hover: #ffd166;
  --accent-glow: rgba(251, 191, 36, 0.28);
  --accent-soft: rgba(251, 191, 36, 0.12);
  --accent-alt: #7c5cff;
  --accent-alt-glow: rgba(124, 92, 255, 0.30);
  --gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.30);
  --green: #a3e635;
}

.ff-anime,
.ff-anime .fortress-home {
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
}
.ff-anime .fortress-home {
  background-image:
    radial-gradient(circle at 8% 12%, rgba(124, 92, 255, 0.18), transparent 35%),
    radial-gradient(circle at 88% 48%, rgba(34, 211, 238, 0.10), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.06), transparent 38%);
}

/* Use the replacement square logo by itself in the header/auth mark. */
.ff-anime .rp-nav-title { display: none; }
.ff-anime .ff-nav-logo { width: 92px; height: 78px; object-fit: contain; }
.ff-anime .auth-logo .rp-nav-brand-text { display: none; }
.ff-anime .auth-logo img { width: 128px; height: 128px; }

.ff-anime .top-nav {
  background: rgba(10, 10, 20, 0.90);
  border-bottom: 1px solid rgba(124, 92, 255, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.ff-anime .nav-brand { color: #f2f2fb; }
.ff-anime .nav-link { color: #c4c5da; }
.ff-anime .nav-link:hover,
.ff-anime .nav-link.is-active {
  color: #22d3ee;
  background: rgba(124, 92, 255, 0.14);
}
.ff-anime .ff-community-link,
.ff-anime .ff-community-link:hover { color: #b3a1ff !important; }
.ff-anime .ff-community-link::after { background: #f43f8e; box-shadow: 0 0 9px rgba(244, 63, 142, 0.65); }
.ff-anime .ff-nav-play {
  background: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  color: #fff !important;
  box-shadow: 0 5px 20px rgba(124, 92, 255, 0.38);
}
.ff-anime .ff-nav-play:hover {
  background: linear-gradient(135deg, #9b84ff 0%, #67e8f9 100%);
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.34);
}
.ff-anime .lang-btn {
  background: rgba(16, 16, 34, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f2f2fb;
}
.ff-anime .lang-btn:hover { border-color: #22d3ee; background: #171736; }
.ff-anime .lang-menu { background: #101022; border-color: rgba(124, 92, 255, 0.28); }
.ff-anime .lang-menu a { color: #c4c5da; }
.ff-anime .lang-menu a:hover,
.ff-anime .lang-menu a.active { background: rgba(124, 92, 255, 0.16); color: #22d3ee; }

/* Tint the hero art so it belongs to the dark CloudCore shell. */
.ff-anime .an-hero {
  background: linear-gradient(180deg, #14122d 0%, #0e0e1c 58%, var(--bg-canvas) 100%);
}
.ff-anime .an-hero:before {
  background:
    linear-gradient(90deg, rgba(10, 10, 20, 0.94) 0%, rgba(10, 10, 20, 0.78) 42%, rgba(10, 10, 20, 0.30) 78%),
    linear-gradient(0deg, rgba(10, 10, 20, 0.86) 0%, rgba(10, 10, 20, 0.12) 55%);
}
.ff-anime .an-hero:after { background: linear-gradient(transparent, var(--bg-canvas)); }
.ff-anime .an-tag {
  color: #22d3ee;
  background: rgba(16, 16, 34, 0.88);
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.14);
}
.ff-anime .an-hero h1 {
  color: #f2f2fb;
  text-shadow: 0 2px 0 rgba(10, 10, 20, 0.75), 0 4px 18px rgba(0, 0, 0, 0.42);
}
.ff-anime .an-hero h1 em {
  background: linear-gradient(135deg, #fbbf24 0%, #f43f8e 52%, #22d3ee 100%);
  filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.25));
}
.ff-anime .an-party-note,
.ff-anime .an-scroll {
  background: rgba(16, 16, 34, 0.88);
  border-color: rgba(124, 92, 255, 0.30);
  box-shadow: var(--shadow-md);
}
.ff-anime .an-party-note strong { color: #f2f2fb; }
.ff-anime .an-scroll { color: #c4c5da; }
.ff-anime .an-scroll:hover { background: #171736; color: #22d3ee; }

/* Dark glass surfaces replace the former white cards. */
.ff-anime :is(.ff-strip-grid, .an-world-features article, .ff-gallery-feature,
  .news-card, .news-sidebar-card, .modal-card, .auth-card, .ff-rank-controls,
  .ff-podium-card, .ff-steps li) {
  background: var(--surface-card);
  color: var(--ink-primary);
  border-color: rgba(124, 92, 255, 0.22);
  box-shadow: var(--shadow-md);
}
.ff-anime .ff-strip-grid > div { border-right-color: rgba(34, 211, 238, 0.16); }
.ff-anime .ff-strip-icon,
.ff-anime .an-feature-icon {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.12));
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.14);
}
.ff-anime .an-world-photo { border-color: rgba(124, 92, 255, 0.72); }
.ff-anime .an-world-features article:hover,
.ff-anime .news-card:hover { background: #171736; border-color: rgba(34, 211, 238, 0.42); }
.ff-anime .ff-gallery-feature { padding: 8px; }
.ff-anime .an-gallery-card { border-color: rgba(124, 92, 255, 0.55); }
.ff-anime .ff-gallery-controls button { background: rgba(124, 92, 255, 0.90); box-shadow: 0 4px 14px rgba(124, 92, 255, 0.42); }

.ff-anime .an-community {
  background:
    linear-gradient(95deg, rgba(10, 10, 20, 0.96) 0%, rgba(14, 14, 28, 0.88) 52%, rgba(14, 14, 28, 0.35) 100%),
    url('../img/gallery/village-sunset.webp') center/cover;
  border-color: rgba(124, 92, 255, 0.34);
}
.ff-anime .an-community h2,
.ff-anime .ff-start h2,
.ff-anime .ff-section-heading h2 { color: #f2f2fb; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42); }
.ff-anime .an-community p:not(.ff-eyebrow),
.ff-anime .ff-start p { color: #c4c5da; }

.ff-anime .ff-ranking-page,
.ff-anime.ff-ranking-page {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(34, 211, 238, 0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 30%, rgba(244, 63, 142, 0.10) 0%, transparent 40%),
    linear-gradient(180deg, #0e0e1c 0%, #0a0a14 100%);
}
.ff-anime .auth-container {
  background:
    radial-gradient(ellipse 800px 450px at 50% 20%, rgba(124, 92, 255, 0.16) 0%, transparent 70%),
    radial-gradient(circle 600px at 80% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 60%),
    var(--bg-canvas);
}
.ff-anime .auth-card .form-group input {
  background: #0e0e1c;
  color: #f2f2fb;
  border-color: rgba(34, 211, 238, 0.24);
}
.ff-anime .auth-card .form-group input:focus { background: #101022; }
.ff-anime .auth-card .btn-primary.btn-block {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #171436;
  box-shadow: 0 8px 22px rgba(251, 191, 36, 0.30);
}
.ff-anime .auth-card .btn-primary.btn-block:hover {
  background: linear-gradient(135deg, #ffd166 0%, #f59e0b 100%);
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.42);
}

.ff-anime .dashboard-hero,
.ff-anime .dashboard-stat-card,
.ff-anime .dash-card,
.ff-anime .dashboard-security-card {
  background: linear-gradient(135deg, #111022, #0e0e1c);
  border-color: rgba(124, 92, 255, 0.24);
  color: #f2f2fb;
}
.ff-anime .dash-info > div,
.ff-anime .dashboard-shortcuts a { background: #0e0e1c; }
.ff-anime .dashboard-shortcuts a:hover { background: #171736; border-color: #22d3ee; }
.ff-anime .site-footer { background: #07070e; border-top-color: #fbbf24; }

/* Keep the header dark in both states. The scroll observer adds this class. */
.ff-anime .top-nav.is-scrolled {
  background: rgba(10, 10, 20, 0.96);
  border-bottom-color: rgba(124, 92, 255, 0.34);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.42);
}
.ff-anime .top-nav.is-scrolled .nav-link { color: #c4c5da; }
.ff-anime .top-nav.is-scrolled .nav-link:hover,
.ff-anime .top-nav.is-scrolled .nav-link.is-active {
  color: #22d3ee;
  background: rgba(124, 92, 255, 0.16);
}
.ff-anime .top-nav.is-scrolled .nav-brand { color: #f2f2fb; }

/* Make the Portuguese hero word visible instead of showing only its gradient box. */
.ff-anime .an-hero h1 em {
  display: inline;
  background: none;
  color: #fbbf24;
  -webkit-text-fill-color: #fbbf24;
  filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.28));
}

/* The class showcase was still using the old bright-blue gradient. */
.ff-anime .ff-classes {
  background:
    radial-gradient(ellipse at 78% 18%, rgba(124, 92, 255, 0.18) 0%, transparent 48%),
    radial-gradient(ellipse at 18% 82%, rgba(244, 63, 142, 0.10) 0%, transparent 52%),
    radial-gradient(circle at 52% 0%, rgba(251, 191, 36, 0.08) 0%, transparent 38%),
    linear-gradient(180deg, #15122b 0%, #100e20 48%, #090912 100%);
  color: #f2f2fb;
  border-top-color: rgba(124, 92, 255, 0.38);
  border-bottom-color: rgba(244, 63, 142, 0.22);
  box-shadow: 0 -12px 35px rgba(124, 92, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 35px 70px rgba(0, 0, 0, 0.38);
}
.ff-anime .ff-classes .ff-section-heading h2 { color: #f2f2fb; }
.ff-anime .ff-classes .ff-section-heading > p { color: #c4c5da; }
.ff-anime .ff-classes .ff-eyebrow { color: #fbbf24; }

.ff-anime .ff-job-select button {
  border-color: rgba(124, 92, 255, 0.28);
  background: linear-gradient(135deg, rgba(17, 16, 34, 0.96), rgba(25, 19, 52, 0.90));
  color: #c4c5da;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.ff-anime .ff-job-select button:hover {
  background: linear-gradient(135deg, #211943, #30205b);
  border-color: rgba(251, 191, 36, 0.58);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.ff-anime .ff-job-select button[aria-pressed='true'] {
  background: linear-gradient(135deg, #7c5cff 0%, #3b2b75 100%);
  color: #ffffff;
  border-color: #fbbf24;
  box-shadow: inset 0 -3px #fbbf24, 0 6px 20px rgba(124, 92, 255, 0.36);
}
.ff-anime .ff-job-select button[aria-pressed='true'] img {
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.72));
}

.ff-anime .ff-job-family-badge.ff-family-physical {
  background: rgba(124, 92, 255, 0.14);
  color: #b3a1ff;
  border-color: rgba(124, 92, 255, 0.38);
}
.ff-anime .ff-job-family-badge.ff-family-magic {
  background: rgba(244, 63, 142, 0.12);
  color: #ff9fc5;
  border-color: rgba(244, 63, 142, 0.34);
}
.ff-anime .ff-job-branches {
  border-left-color: #7c5cff;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.14) 0%, transparent 100%);
}
.ff-anime .ff-job-branches > span,
.ff-anime .ff-job-evolution > span { color: #b3a1ff; }
.ff-anime .ff-job-branches p,
.ff-anime .ff-job-description { color: #c4c5da; }
.ff-anime .ff-crystal-eyebrow { filter: drop-shadow(0 0 6px rgba(124, 92, 255, 0.72)); }
.ff-anime .ff-pedestal-rune {
  border-color: rgba(124, 92, 255, 0.58);
  box-shadow: 0 0 30px rgba(124, 92, 255, 0.32), inset 0 0 25px rgba(251, 191, 36, 0.22);
  background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.24) 0%, rgba(20, 15, 46, 0.56) 60%, transparent 75%);
}
.ff-anime .ff-pedestal-glow {
  background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.40) 0%, rgba(251, 191, 36, 0.18) 42%, transparent 70%);
}
.ff-anime .ff-job-art img { filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.82)) drop-shadow(0 0 30px rgba(124, 92, 255, 0.22)); }
.ff-anime .ff-class-points {
  border-color: rgba(124, 92, 255, 0.24);
  background: rgba(17, 16, 34, 0.66);
  color: #9294ad;
}
.ff-anime .an-class-history { color: #9294ad; }
.ff-anime .an-class-history summary { color: #fbbf24; }

/* ── Gallery lightbox polish ── */
.ff-anime .an-lightbox {
  width: min(96vw, 1480px);
  height: min(94vh, 940px);
  max-height: none;
  padding: 18px 22px 20px;
  border-color: rgba(124, 92, 255, 0.44);
  background: rgba(8, 8, 18, 0.96);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.82), 0 0 46px rgba(124, 92, 255, 0.18);
  opacity: 0;
  transform: scale(0.985);
}
.ff-anime .an-lightbox[open] {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  animation: ff-lightbox-in 260ms cubic-bezier(.2,.8,.2,1) forwards;
}
.ff-anime .an-lightbox.is-closing {
  animation: ff-lightbox-out 220ms ease forwards;
  pointer-events: none;
}
.ff-anime .an-lightbox::backdrop {
  background: rgba(3, 3, 9, 0.88);
  backdrop-filter: blur(12px) saturate(120%);
}
.ff-anime .an-lightbox > img {
  width: 100%;
  max-width: 100%;
  max-height: calc(94vh - 116px);
  object-fit: contain;
  transition: opacity 220ms ease, transform 220ms ease;
}
.ff-anime .an-lightbox > img.is-switching {
  opacity: 0;
  transform: scale(0.992);
}
.ff-anime .an-lightbox-close {
  width: 44px;
  height: 44px;
  right: 22px;
  top: 22px;
  background: linear-gradient(135deg, rgba(55, 94, 72, 0.92), rgba(190, 108, 43, 0.92));
  border-color: rgba(255, 215, 121, 0.7);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.32);
  line-height: 1;
}
.ff-anime .an-lightbox-close:hover {
  background: linear-gradient(135deg, #527c5d, #d7863a);
  transform: rotate(90deg);
}
.ff-anime .an-lightbox-footer {
  width: min(100%, 520px);
  justify-content: center;
  gap: 20px;
  padding-top: 16px;
  color: #f2f2fb;
}
.ff-anime .an-lightbox-footer p {
  min-width: 220px;
  margin: 0;
  text-align: center;
}
.ff-anime .an-lightbox-footer button,
.ff-anime .ff-gallery-controls button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 1;
  background: linear-gradient(135deg, #315b47 0%, #b96b2d 100%);
  border: 1px solid rgba(255, 215, 121, 0.72);
  color: #fff8e7;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
  transform: translateY(0);
}
.ff-anime .an-lightbox-footer button:hover,
.ff-anime .ff-gallery-controls button:hover {
  background: linear-gradient(135deg, #4f7b5c 0%, #d7863a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(197, 103, 43, 0.28);
}
.ff-anime .ff-gallery-feature #gallery-feature-image {
  opacity: 1;
  transform: scale(1);
  transition: opacity 240ms ease, transform 360ms ease;
}
.ff-anime .ff-gallery-feature.is-switching #gallery-feature-image {
  opacity: 0;
  transform: scale(0.992);
}

@keyframes ff-lightbox-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes ff-lightbox-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.985); }
}

/* ── Logo-colour play actions ── */
.ff-anime .rp-play-button,
.ff-anime .ff-nav-play {
  background: linear-gradient(135deg, #315b47 0%, #6f8e58 46%, #c8752f 100%);
  border-color: rgba(255, 215, 121, 0.78);
  color: #fff8e7 !important;
  box-shadow: 0 7px 22px rgba(197, 103, 43, 0.30), 0 0 0 1px rgba(55, 94, 72, 0.44);
}
.ff-anime .rp-play-button:hover,
.ff-anime .ff-nav-play:hover {
  background: linear-gradient(135deg, #4f7b5c 0%, #91a75d 44%, #dc8b3d 100%);
  border-color: #ffe29a;
  color: #fffdf5 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(197, 103, 43, 0.38), 0 0 0 2px rgba(251, 191, 36, 0.16);
}
.ff-anime .rp-play-button:active,
.ff-anime .ff-nav-play:active { transform: translateY(0); }

/* Hero play button: deeper logo colours and a readable light label. */
.ff-anime .rp-play-button {
  min-width: 224px;
  min-height: 58px;
  padding: 8px 10px 8px 26px;
  background: linear-gradient(135deg, #203e34 0%, #416a4e 48%, #a85d29 100%);
  border: 2px solid rgba(255, 215, 121, 0.86);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30), 0 0 0 3px rgba(197, 103, 43, 0.12);
}
.ff-anime .rp-play-button:hover {
  background: linear-gradient(135deg, #2d5845 0%, #5b8156 48%, #c8752f 100%);
  border-color: #ffe29a;
  box-shadow: 0 13px 32px rgba(0, 0, 0, 0.36), 0 0 0 4px rgba(251, 191, 36, 0.14);
}
.ff-anime .rp-play-title {
  color: #fff8e7 !important;
  text-shadow: 0 1px 2px rgba(25, 18, 10, 0.72);
}
.ff-anime .rp-play-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #fff8e7 0%, #f7d27b 100%);
  color: #315b47;
  box-shadow: 0 4px 12px rgba(25, 18, 10, 0.30), inset 0 1px 1px rgba(255, 255, 255, 0.95);
}
.ff-anime .rp-play-button:hover .rp-play-icon {
  transform: translateX(2px) scale(1.04);
  color: #203e34;
}

/* ── Class profile layout ── */
.ff-anime .ff-job-profile {
  min-height: 560px;
  gap: 56px;
}
.ff-anime .ff-job-copy {
  padding: 34px 34px 30px;
  border: 1px solid rgba(124, 92, 255, 0.24);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 16, 34, 0.84), rgba(25, 19, 52, 0.58));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ff-anime .ff-job-copy::before {
  content: '';
  display: block;
  width: 76px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 99px;
  background: linear-gradient(90deg, #fbbf24, #c8752f 52%, #7c5cff);
}
.ff-anime .ff-job-art { min-height: 560px; }

/* ── Class family tree: base class → two specializations ── */
.ff-anime .ff-job-families {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-bottom: 30px;
}
.ff-anime .ff-class-family {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(124, 92, 255, 0.24);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 16, 34, 0.90), rgba(25, 19, 52, 0.66));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ff-anime .ff-class-family-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.ff-anime .ff-class-family-heading small {
  color: #9294ad;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: none;
}
.ff-anime .ff-class-family .ff-job-choice {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: start;
  width: 100%;
  min-height: 70px;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(124, 92, 255, 0.26);
  border-radius: 14px;
  background: rgba(10, 10, 20, 0.64);
  color: #f2f2fb;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.20);
  transform: translateY(0);
}
.ff-anime .ff-class-family .ff-job-choice img {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.32));
}
.ff-anime .ff-class-family .ff-job-choice-name {
  display: block;
  color: #f2f2fb;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}
.ff-anime .ff-class-family .ff-job-choice-meta {
  display: block;
  margin-top: 3px;
  color: #9294ad;
  font-size: 10px;
  font-weight: 800;
}
.ff-anime .ff-class-family .ff-job-choice:hover,
.ff-anime .ff-class-family .ff-job-choice:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.62);
  background: linear-gradient(135deg, rgba(49, 91, 71, 0.52), rgba(124, 92, 255, 0.30));
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.28), 0 0 18px rgba(124, 92, 255, 0.14);
}
.ff-anime .ff-class-family .ff-job-choice[aria-pressed='true'] {
  border-color: rgba(251, 191, 36, 0.90);
  background: linear-gradient(135deg, rgba(49, 91, 71, 0.88), rgba(191, 108, 43, 0.56));
  box-shadow: inset 0 -3px #fbbf24, 0 9px 24px rgba(197, 103, 43, 0.22);
}
.ff-anime .ff-class-family .ff-job-choice[aria-pressed='true'] .ff-job-choice-meta {
  color: #ffe29a;
}
.ff-anime .ff-job-path-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
}
.ff-anime .ff-job-path-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  border-top: 1px solid rgba(251, 191, 36, 0.36);
}
.ff-anime .ff-job-path-branches::after {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  height: 24px;
  border-left: 1px solid rgba(251, 191, 36, 0.36);
}
.ff-anime .ff-job-path-branches .ff-job-choice {
  min-height: 82px;
  padding: 9px 10px;
}
.ff-anime .ff-job-path-branches .ff-job-choice-name { font-size: 13px; }
.ff-anime .ff-job-path-branches .ff-job-choice-meta { font-size: 9px; }

@media (max-width: 860px) {
  .ff-anime .ff-job-families { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ff-anime .ff-class-family { padding: 14px; }
  .ff-anime .ff-class-family-heading { display: block; }
  .ff-anime .ff-class-family-heading small { display: block; margin-top: 4px; }
  .ff-anime .ff-job-path-branches { gap: 8px; }
  .ff-anime .ff-job-path-branches .ff-job-choice { grid-template-columns: 32px minmax(0, 1fr); padding-inline: 8px; }
  .ff-anime .ff-job-path-branches .ff-job-choice img { width: 30px; height: 30px; }
}

/* Auth integrations: center reCAPTCHA and keep Google as an icon-only action. */
.ff-anime .auth-captcha {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 78px;
  margin: 8px 0 18px;
}
.ff-anime .auth-captcha .g-recaptcha {
  display: flex;
  justify-content: center;
  width: 304px;
  min-height: 78px;
}
.ff-anime .auth-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  min-width: 48px;
  height: 48px !important;
  min-height: 48px;
  margin: 2px auto 0;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
}
.ff-anime .auth-google-login iframe {
  display: block;
  max-width: 48px;
  max-height: 48px;
  border-radius: 50%;
}
.ff-anime .auth-social-divider + .auth-google-login {
  margin-top: 0;
}

/* Restore the ambient class effects that had been explicitly disabled. */
.ff-anime .ff-pedestal-rune {
  animation: auraPulse 3s ease-in-out infinite alternate;
}
.ff-anime .ff-pedestal-glow {
  animation: pedestalGlow 3.4s ease-in-out infinite alternate;
}
@keyframes pedestalGlow {
  from { opacity: 0.55; transform: translateX(-50%) scale(0.90); }
  to { opacity: 1; transform: translateX(-50%) scale(1.10); }
}

/* Reliable class-switch entrance, including browsers without Web Animations API. */
.ff-anime .ff-job-profile.is-animating .ff-job-copy > * {
  animation: ff-class-copy-in 420ms cubic-bezier(.2,.8,.2,1) both;
}
.ff-anime .ff-job-profile.is-animating .ff-job-copy > *:nth-child(2) { animation-delay: 40ms; }
.ff-anime .ff-job-profile.is-animating .ff-job-copy > *:nth-child(3) { animation-delay: 80ms; }
.ff-anime .ff-job-profile.is-animating .ff-job-copy > *:nth-child(4) { animation-delay: 120ms; }
.ff-anime .ff-job-profile.is-animating .ff-job-copy > *:nth-child(5) { animation-delay: 160ms; }
.ff-anime .ff-job-profile.is-animating .ff-job-copy > *:nth-child(6) { animation-delay: 200ms; }
.ff-anime .ff-job-profile.is-animating .ff-job-art picture {
  animation: ff-class-art-in 620ms cubic-bezier(.16,1,.3,1) both;
}
@keyframes ff-class-copy-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ff-class-art-in {
  from { opacity: 0; transform: translateX(70px) scale(.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* News redesign: a spacious dispatch layout with a real featured story. */
.ff-anime .news-page.news-list-page {
  width: min(1240px, calc(100% - 64px));
  max-width: none;
  padding: calc(var(--ff-nav-height, 86px) + 2.75rem) 0 5rem;
}
.ff-anime .news-hero {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid rgba(124, 92, 255, 0.20);
}
.ff-anime .news-hero::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 240px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.15), transparent 68%);
  pointer-events: none;
}
.ff-anime .news-hero::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, #fbbf24, #f43f8e, #22d3ee);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}
.ff-anime .news-hero-kicker,
.ff-anime .news-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #22d3ee;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.ff-anime .news-hero-kicker span,
.ff-anime .news-sidebar-footer span { color: #fbbf24; }
.ff-anime .news-hero h1 {
  position: relative;
  z-index: 1;
  margin: 12px 0 8px;
  color: #f2f2fb;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 950;
  letter-spacing: -2px;
  line-height: 1;
}
.ff-anime .news-hero h1 span {
  background: linear-gradient(135deg, #fbbf24 0%, #f43f8e 52%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ff-anime .news-hero p {
  position: relative;
  z-index: 1;
  width: min(100%, 600px);
  margin: 0;
  color: #c4c5da;
  font-size: 16px;
  line-height: 1.65;
}
.ff-anime .news-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  padding-top: 2.5rem;
}
.ff-anime .news-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ff-anime .news-section-heading h2 {
  margin: 5px 0 0;
  color: #f2f2fb;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2;
}
.ff-anime .news-section-count {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  color: #9294ad;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ff-anime .news-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1.25rem;
}
.ff-anime .news-card {
  min-height: 100%;
  background: linear-gradient(145deg, rgba(20, 19, 43, 0.98), rgba(13, 13, 28, 0.98));
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}
.ff-anime .news-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(145deg, #1b1a3d, #111126);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34), 0 0 24px rgba(124, 92, 255, 0.12);
}
.ff-anime .news-card-image {
  height: 250px;
  background:
    radial-gradient(circle at 72% 20%, rgba(34, 211, 238, 0.32), transparent 25%),
    linear-gradient(135deg, #292052 0%, #123d61 52%, #0b172b 100%);
}
.ff-anime .news-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(7, 7, 17, 0.82) 100%);
  pointer-events: none;
}
.ff-anime .news-card-image img { position: relative; z-index: 1; }
.ff-anime .news-card-placeholder {
  position: relative;
  align-content: center;
  justify-items: center;
  gap: 8px;
  background:
    radial-gradient(circle at 50% 44%, rgba(251, 191, 36, 0.20), transparent 18%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.85), rgba(10, 49, 76, 0.96));
}
.ff-anime .news-card-placeholder::before,
.ff-anime .news-card-placeholder::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 50%;
}
.ff-anime .news-card-placeholder::before { width: 190px; height: 190px; }
.ff-anime .news-card-placeholder::after { width: 280px; height: 280px; border-color: rgba(251, 191, 36, 0.14); }
.ff-anime .news-card-placeholder-mark {
  position: relative;
  z-index: 1;
  color: #fbbf24;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 950;
  letter-spacing: -4px;
  text-shadow: 0 0 22px rgba(251, 191, 36, 0.42);
}
.ff-anime .news-card-placeholder-label {
  position: relative;
  z-index: 1;
  color: rgba(242, 242, 251, 0.78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}
.ff-anime .news-card-body { padding: 1.35rem 1.45rem 1.5rem; }
.ff-anime .news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ff-anime .news-card-tag {
  padding: 4px 8px;
  border: 1px solid rgba(34, 211, 238, 0.30);
  border-radius: 999px;
  color: #22d3ee;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}
.ff-anime .news-card-date { margin: 0; color: #9294ad; }
.ff-anime .news-card-title { font-size: 24px; margin: 0 0 8px; }
.ff-anime .news-card-title a { color: #f2f2fb; }
.ff-anime .news-card-excerpt { color: #c4c5da; font-size: 15px; line-height: 1.65; }
.ff-anime .news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-size: 13px;
  letter-spacing: .25px;
}
.ff-anime .news-sidebar { top: calc(var(--ff-nav-height, 86px) + 1.5rem); }
.ff-anime .news-sidebar-card {
  background: linear-gradient(160deg, rgba(18, 17, 38, 0.98), rgba(12, 12, 26, 0.98));
  border: 1px solid rgba(124, 92, 255, 0.30);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}
.ff-anime .news-sidebar-heading { padding-bottom: 1rem; border-bottom: 1px solid rgba(124, 92, 255, 0.18); }
.ff-anime .news-sidebar-card h3 { margin: 5px 0 0; color: #f2f2fb; font-size: 20px; }
.ff-anime .news-sidebar-list li { padding: .95rem 0; border-bottom-color: rgba(124, 92, 255, 0.16); }
.ff-anime .news-sidebar-list a { color: #f2f2fb; font-size: 14px; line-height: 1.4; }
.ff-anime .news-sidebar-list a:hover { color: #22d3ee; }
.ff-anime .news-sidebar-list small { color: #9294ad; }
.ff-anime .news-sidebar-empty { color: #9294ad; font-size: 13px; line-height: 1.6; }
.ff-anime .news-sidebar-footer {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(124, 92, 255, 0.16);
  color: #9294ad;
  font-size: 12px;
  font-weight: 700;
}
.ff-anime .news-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 3rem 2rem;
  border: 1px dashed rgba(124, 92, 255, 0.35);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 20%, rgba(124, 92, 255, 0.14), transparent 58%), rgba(16, 16, 34, 0.7);
  text-align: center;
}
.ff-anime .news-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 18px;
  color: #fbbf24;
  font-size: 25px;
  background: rgba(34, 211, 238, 0.10);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.14);
}
.ff-anime .news-empty-kicker { color: #22d3ee; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }
.ff-anime .news-empty h2 { margin: 8px 0 5px; color: #f2f2fb; font-size: 26px; }
.ff-anime .news-empty p { max-width: 430px; margin: 0 0 1.25rem; color: #9294ad; font-size: 14px; }
.ff-anime .news-empty-action { color: #fbbf24; font-size: 13px; font-weight: 900; text-decoration: none; }
.ff-anime .news-empty-action:hover { color: #22d3ee; }

/* Article view stays inside the same dark visual system. */
.ff-anime .news-page.news-single-layout {
  width: min(1240px, calc(100% - 64px));
  max-width: none;
  padding: calc(var(--ff-nav-height, 86px) + 2.75rem) 0 5rem;
  grid-template-columns: minmax(0, 1fr) 300px;
}
.ff-anime .news-article {
  background: linear-gradient(145deg, rgba(20, 19, 43, 0.98), rgba(13, 13, 28, 0.98));
  border-color: rgba(124, 92, 255, 0.30);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}
.ff-anime .news-back { margin-bottom: 1.75rem; color: #22d3ee; }
.ff-anime .news-back:hover { color: #fbbf24; }
.ff-anime .news-article-header { margin-bottom: 2rem; }
.ff-anime .news-article-header time { display: block; margin-top: 10px; color: #fbbf24; }
.ff-anime .news-article-header h1 { margin: 8px 0 6px; color: #f2f2fb; font-size: clamp(32px, 4vw, 48px); letter-spacing: -1px; }
.ff-anime .news-article-author { color: #9294ad; }
.ff-anime .news-article-content { color: #c4c5da; font-size: 16px; line-height: 1.8; }
.ff-anime .news-article-content h2,
.ff-anime .news-article-content h3 { color: #f2f2fb; }
.ff-anime .news-article-content strong { color: #f2f2fb; }
.ff-anime .news-article-content blockquote,
.ff-anime .news-article-content code,
.ff-anime .news-article-content pre { background: rgba(7, 7, 17, 0.62); }

/* GIS owns the icon artwork; keep its iframe at natural size so the G is never clipped. */
.ff-anime .auth-google-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  min-width: 44px;
  height: 44px !important;
  min-height: 44px;
  margin: 0 auto;
  padding: 0 !important;
  overflow: visible !important;
  border-radius: 50%;
  line-height: 0;
}
.ff-anime .auth-google-login iframe {
  display: block;
  width: 40px !important;
  height: 40px !important;
  max-width: none !important;
  max-height: none !important;
  border: 0;
  border-radius: 50%;
}

@media (max-width: 900px) {
  .ff-anime .news-page.news-list-page,
  .ff-anime .news-page.news-single-layout { width: min(100% - 32px, 680px); }
  .ff-anime .news-layout,
  .ff-anime .news-page.news-single-layout { grid-template-columns: minmax(0, 1fr); }
  .ff-anime .news-sidebar { position: static; }
}
@media (max-width: 520px) {
  .ff-anime .news-page.news-list-page,
  .ff-anime .news-page.news-single-layout { width: calc(100% - 24px); padding-top: calc(var(--ff-nav-height, 72px) + 1.5rem); }
  .ff-anime .news-hero { padding: 1.5rem 0 2.5rem; }
  .ff-anime .news-hero h1 { font-size: 42px; }
  .ff-anime .news-section-heading { align-items: start; flex-direction: column; }
  .ff-anime .news-card-image { height: 210px; }
}

/* Google action: show a clean brand mark while GIS keeps the real click target. */
.ff-anime .auth-google-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 2px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(124, 92, 255, 0.08);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ff-anime .auth-google-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.30), 0 0 0 5px rgba(34, 211, 238, 0.14);
}
.ff-anime .auth-google-mark {
  position: relative;
  z-index: 0;
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  background: conic-gradient(from -35deg, #4285f4 0 26%, #34a853 26% 48%, #fbbc05 48% 70%, #ea4335 70% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ff-anime .auth-google-widget {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  opacity: .001;
  overflow: visible !important;
}
.ff-anime .auth-google-widget iframe {
  width: 46px !important;
  height: 46px !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 50% !important;
}

/* ── Final dark-shell treatment: preload and Hall of Fame ── */
.ff-anime .ff-preload {
  background:
    radial-gradient(circle at 50% 34%, rgba(124, 92, 255, 0.18), transparent 32%),
    radial-gradient(circle at 50% 76%, rgba(34, 211, 238, 0.08), transparent 34%),
    #07070e;
  color: #f2f2fb;
}
.ff-anime .ff-preload-inner {
  width: min(340px, calc(100vw - 48px));
  padding: 34px 30px 30px;
  border: 1px solid rgba(124, 92, 255, 0.30);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 16, 34, 0.92), rgba(10, 10, 20, 0.82));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 38px rgba(124, 92, 255, 0.14);
}
.ff-anime .ff-preload-inner img {
  filter: drop-shadow(0 0 18px rgba(124, 92, 255, 0.48)) drop-shadow(0 0 28px rgba(34, 211, 238, 0.22));
}
.ff-anime .ff-preload-inner p {
  color: #c4c5da;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ff-anime .ff-preload-track {
  background: #0e0e1c;
  border: 1px solid rgba(124, 92, 255, 0.26);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.ff-anime .ff-preload-track span {
  background: linear-gradient(90deg, #7c5cff 0%, #22d3ee 52%, #fbbf24 100%);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.72), 0 0 24px rgba(124, 92, 255, 0.36);
}

/* Keep the square crest sharp in the ranking header. The previous 92x78 box
   forced a square artwork through a non-square filtered layer, which made its
   fine lettering and edges look soft on this page. */
.ff-anime.page-ranking .top-nav .ff-nav-logo {
  width: 84px;
  height: 84px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  filter: none;
  transform: translateZ(0);
  backface-visibility: visible;
}

.ff-anime .ff-ranking-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 8%, rgba(124, 92, 255, 0.18), transparent 38%),
    radial-gradient(ellipse at 18% 28%, rgba(244, 63, 142, 0.10), transparent 34%),
    radial-gradient(ellipse at 55% 92%, rgba(34, 211, 238, 0.08), transparent 42%),
    linear-gradient(180deg, #0e0e1c 0%, #0a0a14 56%, #07070e 100%);
}
.ff-anime .ff-ranking-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 34%, rgba(124, 92, 255, 0.045) 50%, transparent 66%);
}
.ff-anime .ff-rankpage-hero h1 {
  color: #f2f2fb;
  text-shadow: 0 2px 10px rgba(124, 92, 255, 0.28);
}
.ff-anime .ff-rankpage-subtitle { color: #c4c5da; }
.ff-anime .ff-rank-tag-pill {
  background: rgba(17, 16, 34, 0.82);
  border-color: rgba(124, 92, 255, 0.30);
  color: #c4c5da;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}
.ff-anime .ff-rank-tag-pill .an-icon { color: #22d3ee; }
.ff-anime .ff-rank-controls {
  background: rgba(17, 16, 34, 0.88);
  border-color: rgba(124, 92, 255, 0.32);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.30), 0 0 24px rgba(124, 92, 255, 0.08);
}
.ff-anime .ff-rank-mode-pill {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(124, 92, 255, 0.14));
  border-color: rgba(251, 191, 36, 0.46);
  color: #ffd978;
  box-shadow: 0 5px 18px rgba(251, 191, 36, 0.12);
}
.ff-anime .ff-rank-mode-pill .an-icon { color: #fbbf24; }
.ff-anime #rankSearchInput {
  background: #0e0e1c;
  border-color: rgba(34, 211, 238, 0.28);
  color: #f2f2fb;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.26);
}
.ff-anime #rankSearchInput::placeholder { color: #9294ad; }
.ff-anime #rankSearchInput:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14), 0 0 22px rgba(34, 211, 238, 0.10);
}
.ff-anime .ff-rank-search-icon { color: #22d3ee; }
.ff-anime .ff-podium-card {
  background: linear-gradient(145deg, #15132a 0%, #111022 100%);
  border-color: rgba(124, 92, 255, 0.34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ff-anime .ff-podium-card:hover {
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.44), 0 0 26px rgba(124, 92, 255, 0.16);
}
.ff-anime .ff-podium-gold {
  background: linear-gradient(145deg, rgba(94, 61, 25, 0.92), #17122a 64%);
  border-color: rgba(251, 191, 36, 0.78);
  box-shadow: 0 22px 54px rgba(251, 191, 36, 0.16), 0 0 0 1px rgba(251, 191, 36, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ff-anime .ff-podium-silver { border-color: rgba(148, 163, 184, 0.46); }
.ff-anime .ff-podium-bronze { border-color: rgba(244, 63, 142, 0.42); }
.ff-anime .ff-podium-badge {
  background: rgba(10, 10, 20, 0.72);
  border-color: rgba(124, 92, 255, 0.28);
  color: #c4c5da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.26);
}
.ff-anime .ff-podium-gold .ff-podium-badge { background: rgba(251, 191, 36, 0.18); color: #ffd978; border-color: rgba(251, 191, 36, 0.46); }
.ff-anime .ff-podium-avatar { background: rgba(34, 211, 238, 0.10); box-shadow: 0 0 20px rgba(34, 211, 238, 0.12); }
.ff-anime .ff-podium-gold .ff-podium-avatar { background: rgba(251, 191, 36, 0.16); box-shadow: 0 0 24px rgba(251, 191, 36, 0.28); }
.ff-anime .ff-podium-name { color: #f2f2fb; }
.ff-anime .ff-podium-server { color: #9294ad; }
.ff-anime .ff-podium-stat { background: rgba(14, 14, 28, 0.78); border-color: rgba(34, 211, 238, 0.20); }
.ff-anime .ff-podium-gold .ff-podium-stat { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.28); }
.ff-anime .ff-podium-stat strong { color: #22d3ee; }
.ff-anime .ff-podium-gold .ff-podium-stat strong { color: #ffd166; }
.ff-anime .ff-podium-stat small { color: #c4c5da; }
.ff-anime .ff-rank-table-wrap {
  background: #111022;
  border-color: rgba(124, 92, 255, 0.30);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}
.ff-anime .ff-rank-table thead {
  background: linear-gradient(180deg, #17152e 0%, #0e0e1c 100%);
  border-bottom-color: rgba(124, 92, 255, 0.28);
}
.ff-anime .ff-rank-table th { color: #9294ad; }
.ff-anime .ff-rank-table tbody tr { border-bottom-color: rgba(124, 92, 255, 0.14); }
.ff-anime .ff-rank-table tbody tr:hover { background: rgba(124, 92, 255, 0.12); }
.ff-anime .ff-rank-table td { color: #c4c5da; }
.ff-anime .ff-row-rank { color: #9294ad; }
.ff-anime .ff-rank-1 { color: #ffd166; }
.ff-anime .ff-rank-2 { color: #cbd5e1; }
.ff-anime .ff-rank-3 { color: #f59e8b; }
.ff-anime .ff-row-name { color: #f2f2fb; }
.ff-anime .ff-server-tag { background: rgba(34, 211, 238, 0.10); border-color: rgba(34, 211, 238, 0.24); color: #67e8f9; }
.ff-anime .ff-row-val strong { color: #22d3ee; }
.ff-anime .ff-row-val small { color: #9294ad; }
.ff-anime .ff-rank-empty-card {
  background: #111022;
  border-color: rgba(124, 92, 255, 0.30);
  box-shadow: var(--shadow-md);
}
.ff-anime .ff-rank-empty-card h3 { color: #f2f2fb; }
.ff-anime .ff-rank-empty-card p { color: #9294ad; }
.ff-anime .ff-rankpage-cta-box {
  background: linear-gradient(135deg, #17112f 0%, #111022 54%, #0b1829 100%);
  border-color: rgba(34, 211, 238, 0.30);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), 0 0 30px rgba(124, 92, 255, 0.10);
}
