/* ============================================================
   Jumputi Heroes Database — Premium Dark UI
   ============================================================ */

/* ---------- Imports & Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800;900&family=Kanit:wght@400;500;600;700;800;900&family=Orbitron:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #060a13;
  --bg-card: #0d1221;
  --bg-card-hover: #111830;
  --bg-glass: rgba(13, 18, 33, 0.65);
  --bg-filter: rgba(10, 15, 28, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 255, 255, 0.12);
  --accent: #ff2e4d;
  --accent-glow: rgba(255, 46, 77, 0.5);
  --gold: #ffd700;
  --neon-blue: #00d4ff;
  --neon-purple: #a855f7;
  --neon-green: #00e676;
  --neon-red: #ff4466;
  --text-primary: #f0f2f5;
  --text-secondary: #8b95a8;
  --text-muted: #4b5563;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Global Resets ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Noto Sans Thai', 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Animated Background ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 8% 15%, rgba(255, 46, 77, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 92% 18%, rgba(255, 196, 0, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 65% 55% at 88% 85%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(168, 85, 247, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 50% 50%, rgba(0, 230, 118, 0.08) 0%, transparent 65%);
  animation: meshShift 16s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0%   { opacity: 1; filter: hue-rotate(0deg); }
  50%  { opacity: 0.85; filter: hue-rotate(12deg); }
  100% { opacity: 1; filter: hue-rotate(-8deg); }
}

/* Particle canvas */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  background: rgba(8, 12, 26, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s var(--transition-smooth);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff2e4d, #ff9500, #ffd700, #00e676, #00d4ff, #a855f7, #ff2e4d);
  background-size: 200% 100%;
  animation: jumpRainbowFlow 8s linear infinite;
  opacity: 0.85;
}

.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Logo */
.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8800 50%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  animation: logoPulse 3s ease-in-out infinite;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  background: inherit;
  filter: blur(10px);
  opacity: 0.5;
  z-index: -1;
  animation: logoPulse 3s ease-in-out infinite;
}

.logo-icon span {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,46,77,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(255,46,77,0.15); }
}

.logo-title {
  font-family: 'Orbitron', 'Kanit', monospace;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(to right, #fff, var(--gold), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.25rem;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  font-weight: 400;
}

/* Search Bar */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.search-bar input {
  width: 100%;
  padding: 10px 42px 10px 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.3s var(--transition-smooth);
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 46, 77, 0.12), inset 0 0 12px rgba(255, 46, 77, 0.04);
  background: rgba(255, 255, 255, 0.06);
}

.search-bar .search-icon,
.search-bar .clear-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color 0.2s;
}
.search-bar .search-icon { left: 14px; }
.search-bar .clear-icon { right: 12px; cursor: pointer; }
.search-bar .clear-icon:hover { color: var(--accent); }

/* ---------- Stat Badge ---------- */
.stat-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.stat-badge strong {
  color: var(--gold);
  font-weight: 800;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
}

/* Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
}

.lang-toggle:hover {
  border-color: var(--border-glow);
  background: rgba(255, 255, 255, 0.08);
}

.lang-toggle .lang-opt.active {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.lang-toggle .lang-sep {
  opacity: 0.3;
}

/* ---------- Filter Panel ---------- */
.filter-panel {
  background: var(--bg-filter);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.filter-group-box--basic {
  border-color: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
}

.filter-group-box--resist {
  background: rgba(255, 215, 0, 0.025);
  border-color: rgba(255, 215, 0, 0.22);
  border-left: 3px solid var(--gold);
}

.filter-group-box--gimmick {
  background: rgba(0, 212, 255, 0.025);
  border-color: rgba(0, 212, 255, 0.22);
  border-left: 3px solid var(--neon-blue);
}

.filter-group-box--afflict {
  background: rgba(251, 146, 60, 0.025);
  border-color: rgba(251, 146, 60, 0.22);
  border-left: 3px solid #fb923c;
}

.filter-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.filter-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 16px 0;
}

/* ---------- Filter Buttons ---------- */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--transition-spring);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.filter-btn:hover {
  border-color: var(--border-glow);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.filter-btn:hover::before { opacity: 1; }

.filter-btn:active {
  transform: translateY(0) scale(0.97);
}

/* Active states */
.color-btn.active, .rare-btn.active, .role-btn.active, .cat-btn.active {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Color indicator dot */
.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
}

/* ---------- Resistance Chips ---------- */
.resist-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--transition-spring);
  user-select: none;
}

.resist-chip:hover {
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
  background: rgba(168, 85, 247, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.1);
}

.resist-chip.active {
  background: rgba(168, 85, 247, 0.12) !important;
  border-color: #a855f7 !important;
  color: #e9d5ff !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2), inset 0 0 12px rgba(168, 85, 247, 0.06);
  transform: translateY(-1px);
}

.resist-chip .resist-count,
.gimmick-chip .resist-count,
.afflict-chip .resist-count {
  font-size: 0.6rem;
  opacity: 0.5;
  font-weight: 400;
  font-family: 'Orbitron', monospace;
}

/* ---------- Gimmick & Buff Chips ---------- */
.gimmick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--transition-spring);
  user-select: none;
}

.gimmick-chip:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: #67e8f9;
  background: rgba(0, 212, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.1);
}

.gimmick-chip.active {
  background: rgba(0, 212, 255, 0.12) !important;
  border-color: #00d4ff !important;
  color: #cffafe !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), inset 0 0 12px rgba(0, 212, 255, 0.06);
  transform: translateY(-1px);
}

/* ---------- Boss Affliction Chips ---------- */
.afflict-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--transition-spring);
  user-select: none;
}

.afflict-chip:hover {
  border-color: rgba(251, 146, 60, 0.45);
  color: #fdba74;
  background: rgba(251, 146, 60, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.1);
}

.afflict-chip.active {
  background: rgba(251, 146, 60, 0.14) !important;
  border-color: #fb923c !important;
  color: #ffedd5 !important;
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.22), inset 0 0 12px rgba(251, 146, 60, 0.06);
  transform: translateY(-1px);
}

/* ---------- Character Cards ---------- */
.chara-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition-spring);
}

.chara-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.6;
  transition: opacity 0.3s, height 0.3s;
}

.chara-card.card-red::before    { background: linear-gradient(90deg, #ff4466, #ff8888); }
.chara-card.card-blue::before   { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.chara-card.card-green::before  { background: linear-gradient(90deg, #10b981, #34d399); }
.chara-card.card-yellow::before { background: linear-gradient(90deg, #eab308, #fde047); }

.chara-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.chara-card:hover::before {
  opacity: 1;
  height: 4px;
}

.chara-card.card-red:hover    { box-shadow: 0 20px 50px -12px rgba(255, 68, 102, 0.2), 0 0 0 1px rgba(255, 68, 102, 0.15); }
.chara-card.card-blue:hover   { box-shadow: 0 20px 50px -12px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.15); }
.chara-card.card-green:hover  { box-shadow: 0 20px 50px -12px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.15); }
.chara-card.card-yellow:hover { box-shadow: 0 20px 50px -12px rgba(234, 179, 8, 0.2), 0 0 0 1px rgba(234, 179, 8, 0.15); }

.chara-card:active {
  transform: translateY(-2px) scale(0.995);
}

/* Card inner content */
.card-body {
  padding: 18px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-footer {
  padding: 10px 18px 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.chara-card:hover .card-footer {
  color: var(--gold);
}

.card-footer .arrow {
  transition: transform 0.3s var(--transition-spring);
}
.chara-card:hover .card-footer .arrow {
  transform: translateX(4px);
}

/* Card header tags */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 10px;
}

.card-series-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  border: 1px solid;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* Card identity with thumbnail */
.card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.card-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb.thumb-red    { box-shadow: 0 0 12px rgba(255, 68, 102, 0.25); border-color: rgba(255, 68, 102, 0.4); }
.card-thumb.thumb-blue   { box-shadow: 0 0 12px rgba(59, 130, 246, 0.25); border-color: rgba(59, 130, 246, 0.4); }
.card-thumb.thumb-green  { box-shadow: 0 0 12px rgba(16, 185, 129, 0.25); border-color: rgba(16, 185, 129, 0.4); }
.card-thumb.thumb-yellow { box-shadow: 0 0 12px rgba(234, 179, 8, 0.25); border-color: rgba(234, 179, 8, 0.4); }

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-thumb-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', 'Kanit', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  position: relative;
}

.thumb-red .card-thumb-fallback    { background: radial-gradient(circle at 30% 30%, #ff4466, #7f1d1d 85%); }
.thumb-blue .card-thumb-fallback   { background: radial-gradient(circle at 30% 30%, #3b82f6, #1e1b4b 85%); }
.thumb-green .card-thumb-fallback  { background: radial-gradient(circle at 30% 30%, #10b981, #064e3b 85%); }
.thumb-yellow .card-thumb-fallback { background: radial-gradient(circle at 30% 30%, #eab308, #713f12 85%); }

.card-thumb.thumb-rare-6 {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.25);
}

.card-title-wrap {
  flex: 1;
  min-width: 0;
}

/* Stars */
.card-stars {
  font-size: 0.72rem;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(to right, #ffd700, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* Card name */
.card-name {
  font-family: 'Kanit', 'Noto Sans Thai', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.chara-card:hover .card-name {
  color: var(--gold);
}

.card-role {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* Stats grid on card */
.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.card-stats .stat-item {
  text-align: center;
}

.card-stats .stat-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-family: 'Orbitron', monospace;
}

.card-stats .stat-value {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
}

.stat-hp   { color: #34d399; }
.stat-atk  { color: #f87171; }
.stat-rec  { color: #fbbf24; }

/* Hissatsu preview */
.card-hissatsu-preview {
  font-size: 0.68rem;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  line-height: 1.5;
}

.card-hissatsu-preview .hl {
  color: var(--accent);
  font-weight: 700;
}

/* Resistance micro-badges on card */
.card-resist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.card-resist-micro {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  color: #c4b5fd;
  font-weight: 500;
}

/* Fade-in stagger animation for cards */
@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-appear {
  animation: cardFadeUp 0.5s var(--transition-smooth) forwards;
  opacity: 0;
}

/* ---------- Select Dropdown ---------- */
.custom-select {
  color-scheme: dark;
  width: 100%;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: all 0.25s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.custom-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 46, 77, 0.1);
}

.custom-select option {
  background: #0d1221;
  color: #f0f2f5;
}

/* ---------- Pagination ---------- */
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--transition-spring);
}

.page-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.page-nav {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--transition-spring);
}

.page-nav:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.page-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s var(--transition-spring);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  opacity: 0.15;
  z-index: 0;
}

.modal-header.hdr-red::before    { background: linear-gradient(135deg, #ff4466, transparent 70%); }
.modal-header.hdr-blue::before   { background: linear-gradient(135deg, #3b82f6, transparent 70%); }
.modal-header.hdr-green::before  { background: linear-gradient(135deg, #10b981, transparent 70%); }
.modal-header.hdr-yellow::before { background: linear-gradient(135deg, #eab308, transparent 70%); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s;
  font-size: 1.1rem;
}

.modal-close:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: rotate(90deg);
}

.modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Kanit', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

.modal-avatar.av-red    { background: linear-gradient(135deg, #dc2626, #450a0a); }
.modal-avatar.av-blue   { background: linear-gradient(135deg, #2563eb, #1e1b4b); }
.modal-avatar.av-green  { background: linear-gradient(135deg, #059669, #052e16); }
.modal-avatar.av-yellow { background: linear-gradient(135deg, #ca8a04, #422006); }

.modal-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-flavor {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  white-space: pre-line;
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.modal-stats-grid .ms-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'Orbitron', monospace;
}

.modal-stats-grid .ms-value {
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Orbitron', monospace;
  margin-top: 2px;
}

/* Modal skill blocks */
.skill-block {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.3s;
}

.skill-block:hover {
  border-color: var(--border-glow);
}

.skill-type-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.skill-type-hissatsu {
  background: rgba(255, 68, 102, 0.12);
  color: #ff6b8a;
  border: 1px solid rgba(255, 68, 102, 0.25);
}

.skill-type-friendship {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.skill-type-tokusei {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.skill-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  margin-left: 8px;
}

.skill-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  margin-top: 10px;
}

/* Modal resist row */
.modal-resist-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Modal tags */
.modal-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.68rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------- Header Navigation Mode Tabs ---------- */
.nav-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glow);
}

.nav-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.nav-mode-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-mode-btn.active {
  background: linear-gradient(135deg, var(--accent), #d91b3a);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 46, 77, 0.35);
}

/* ---------- Quest & Boss Counter Finder ---------- */
.filter-group-box--quest {
  background: rgba(168, 85, 247, 0.03);
  border-color: rgba(168, 85, 247, 0.25);
  border-left: 3px solid var(--neon-purple);
}

.quest-search-input {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-glow);
  background: rgba(6, 10, 19, 0.75);
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.quest-search-input:focus {
  border-color: var(--neon-purple);
}

.quest-layout {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 18px;
  align-items: start;
}

.quest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 700px;
  overflow-y: auto;
  padding-right: 4px;
}

.quest-list::-webkit-scrollbar { width: 6px; }
.quest-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 4px; }

.quest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s var(--transition-smooth);
  text-align: left;
  width: 100%;
}

.quest-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateX(2px);
}

.quest-item.active {
  background: rgba(168, 85, 247, 0.12);
  border-color: var(--neon-purple);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.18);
}

.quest-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glow);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.quest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quest-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 4px;
}

.quest-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.66rem;
  color: var(--text-secondary);
}

.quest-type-pill {
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.62rem;
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.28);
}

.quest-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  min-height: 420px;
}

.stage-tab-btn {
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.stage-tab-btn:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
}

.stage-tab-btn.active {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.stage-gimmick-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.1);
  color: #fde047;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.stage-gimmick-toggle.unchecked {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  opacity: 0.6;
  text-decoration: line-through;
}

.quest-counter-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--accent), #e11d48);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 46, 77, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.quest-counter-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 46, 77, 0.5);
}

.quest-banner {
  scroll-margin-top: 140px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-left: 4px solid var(--neon-purple);
}

.boss-skill-item {
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .quest-layout {
    grid-template-columns: 1fr;
  }
  .quest-list {
    max-height: 320px;
  }
}

/* ---------- Legend Summon Database ---------- */
.filter-group-box--legend {
  background: rgba(255, 215, 0, 0.03);
  border-color: rgba(255, 215, 0, 0.25);
  border-left: 3px solid var(--gold);
}

.legend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s var(--transition-spring), border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.legend-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  opacity: 0.75;
}

.legend-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 215, 0, 0.12);
}

.legend-cost-pill {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.28);
  color: var(--gold);
  font-family: 'Orbitron', monospace;
}

.legend-tag {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ---------- Loading Spinner ---------- */
@keyframes spinGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent);
  animation: spinGlow 0.8s linear infinite;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 640px) {
  .filter-panel { padding: 14px 16px; gap: 10px; }
  .filter-group-box { padding: 12px 12px; }
  .card-body { padding: 14px 14px 10px; }
  .card-stats { padding: 8px 10px; }
  .modal-header { padding: 20px 18px 16px; }
  .modal-body { padding: 18px; gap: 14px; }
  .logo-title { font-size: 1rem; }
}

/* ============================================================
   SHONEN JUMP ALL-STARS CROSSOVER DECORATION THEME
   ============================================================ */

@keyframes jumpRainbowFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes jumpFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-9px); }
}

@keyframes jumpFloatAlt {
  0%, 100% { transform: translateY(-4px) rotate(-1deg); }
  50%      { transform: translateY(7px) rotate(1deg); }
}

@keyframes jumpPulseGlow {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.06); }
}

/* Manga Halftone & Speedlines Overlays */
.jump-halftone-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1.25px, transparent 1.25px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.9) 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.9) 100%);
}

.jump-speedlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background: repeating-conic-gradient(
    from 0deg at 50% 28%,
    rgba(255, 215, 0, 0.045) 0deg 0.8deg,
    transparent 0.8deg 6deg
  );
  mask-image: radial-gradient(circle at 50% 35%, transparent 32%, rgba(0,0,0,0.85) 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, transparent 32%, rgba(0,0,0,0.85) 100%);
}

/* Header Decoration Toggle */
.deco-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
}

.deco-toggle:hover {
  border-color: rgba(255, 215, 0, 0.4);
  color: #fff;
}

.deco-toggle.active {
  background: linear-gradient(135deg, rgba(255, 46, 77, 0.22), rgba(255, 196, 0, 0.22), rgba(0, 212, 255, 0.2));
  border-color: rgba(255, 215, 0, 0.55);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.18);
}

/* Deco Off State */
body.deco-off .jump-hero-banner,
body.deco-off .jump-halftone-bg,
body.deco-off .jump-speedlines,
body.deco-off .jump-floating-deco {
  display: none !important;
}

body.deco-off .site-header::after {
  opacity: 0.2;
}

/* Hero Showcase Banner */
.jump-hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px 26px;
  margin-bottom: 22px;
  background: linear-gradient(135deg,
    rgba(22, 16, 44, 0.92) 0%,
    rgba(13, 20, 42, 0.94) 45%,
    rgba(26, 14, 34, 0.92) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(255, 46, 77, 0.14),
    0 0 42px rgba(0, 212, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.jump-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(115deg, #ff2e4d, #ff9500, #ffd700, #00e676, #00d4ff, #a855f7, #ff2e4d);
  background-size: 200% 200%;
  animation: jumpRainbowFlow 7s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.72;
}

.jump-banner-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  animation: jumpPulseGlow 7s ease-in-out infinite;
}
.jump-banner-glow--1 {
  width: 260px; height: 260px;
  top: -80px; left: -40px;
  background: rgba(255, 46, 77, 0.28);
}
.jump-banner-glow--2 {
  width: 280px; height: 280px;
  bottom: -90px; right: 18%;
  background: rgba(0, 212, 255, 0.24);
  animation-delay: -2.5s;
}
.jump-banner-glow--3 {
  width: 220px; height: 220px;
  top: -50px; right: -30px;
  background: rgba(255, 215, 0, 0.24);
  animation-delay: -5s;
}

.jump-banner-halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.jump-banner-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

.jump-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.38);
  color: #fde047;
  font-family: 'Orbitron', 'Kanit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.jump-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2e4d;
  box-shadow: 0 0 10px #ff2e4d, 0 0 18px #ffd700;
  animation: jumpPulseGlow 1.6s ease-in-out infinite;
}

.jump-banner-title {
  margin: 0 0 8px;
  font-family: 'Kanit', 'Noto Sans Thai', sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 900;
  line-height: 1.18;
  background: linear-gradient(90deg, #ffffff 0%, #fde047 28%, #ff6b81 55%, #38bdf8 82%, #c084fc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: jumpRainbowFlow 9s linear infinite;
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.12);
}

.jump-banner-desc {
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.55;
}

/* Quick Series Pills */
.jump-quick-series {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.series-quick-pill {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.22s var(--transition-spring);
}

.series-quick-pill:hover,
.series-quick-pill.active {
  transform: translateY(-2px) scale(1.03);
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border-color: #c084fc;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.series-quick-pill.pill-all.active,
.series-quick-pill.pill-all:hover {
  background: linear-gradient(135deg, #ff2e4d, #ff9500);
  border-color: #ffd700;
  box-shadow: 0 4px 14px rgba(255, 46, 77, 0.35);
}

.series-quick-pill.pill-onepiece.active,
.series-quick-pill.pill-onepiece:hover {
  background: linear-gradient(135deg, #e11d48, #f59e0b);
  border-color: #fbbf24;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
}

.series-quick-pill.pill-naruto.active,
.series-quick-pill.pill-naruto:hover {
  background: linear-gradient(135deg, #f97316, #0ea5e9);
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.series-quick-pill.pill-dragonball.active,
.series-quick-pill.pill-dragonball:hover {
  background: linear-gradient(135deg, #eab308, #ef4444);
  border-color: #fde047;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.42);
}

.series-quick-pill.pill-bleach.active,
.series-quick-pill.pill-bleach:hover {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-color: #c084fc;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.42);
}

.series-quick-pill.pill-kimetsu.active,
.series-quick-pill.pill-kimetsu:hover {
  background: linear-gradient(135deg, #059669, #06b6d4);
  border-color: #34d399;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.series-quick-pill.pill-hxh.active,
.series-quick-pill.pill-hxh:hover {
  background: linear-gradient(135deg, #16a34a, #eab308);
  border-color: #4ade80;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
}

.series-quick-pill.pill-mha.active,
.series-quick-pill.pill-mha:hover {
  background: linear-gradient(135deg, #10b981, #ef4444);
  border-color: #6ee7b7;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.series-quick-pill.pill-clover.active,
.series-quick-pill.pill-clover:hover {
  background: linear-gradient(135deg, #1e293b, #22c55e);
  border-color: #4ade80;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.jump-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jump-shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #fff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--transition-spring);
}

.jump-shuffle-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 46, 77, 0.28), rgba(0, 212, 255, 0.28));
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.22);
}

.jump-lineup-name {
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255, 215, 0, 0.16);
  color: #fde047;
  font-size: 0.66rem;
  font-weight: 700;
}

/* Character Stage on Banner */
.jump-banner-stage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 190px;
}

.jump-hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 185px;
  border-radius: 16px;
  padding: 8px 6px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(10,14,28,0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--transition-spring), border-color 0.25s, box-shadow 0.25s;
  animation: jumpFloat 4.8s ease-in-out infinite;
}

.jump-hero-card:nth-child(even) {
  animation-name: jumpFloatAlt;
  animation-delay: -1.8s;
}

.jump-hero-card:hover {
  transform: translateY(-8px) scale(1.04) !important;
  border-color: var(--hero-accent, var(--gold));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), 0 0 22px var(--hero-glow, rgba(255, 215, 0, 0.35));
  z-index: 4;
}

.jump-hero-aura {
  position: absolute;
  inset: 15% 10% 25%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow, rgba(255, 215, 0, 0.4)) 0%, transparent 70%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
}

.jump-hero-sprite {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
  transition: transform 0.3s var(--transition-spring);
}

.jump-hero-card:hover .jump-hero-sprite {
  transform: scale(1.08);
}

.jump-hero-badge {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: rgba(8, 12, 24, 0.82);
  border: 1px solid var(--hero-accent, rgba(255, 255, 255, 0.25));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wide-screen Side Margin Floating Stickers */
.jump-floating-deco {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
}

@media (min-width: 1460px) {
  .jump-floating-deco {
    display: block;
  }
}

.jump-side-sticker {
  position: fixed;
  width: 130px;
  opacity: 0.42;
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.28));
  animation: jumpFloat 6s ease-in-out infinite;
  transition: opacity 0.3s;
}

.jump-side-sticker--left {
  left: 14px;
  bottom: 28px;
}

.jump-side-sticker--right {
  right: 14px;
  bottom: 28px;
  animation-name: jumpFloatAlt;
  animation-delay: -2.5s;
}

/* Responsive Banner */
@media (max-width: 960px) {
  .jump-banner-inner {
    grid-template-columns: 1fr;
  }
  .jump-banner-stage {
    min-height: 155px;
  }
  .jump-hero-card {
    height: 155px;
  }
  .jump-hero-sprite {
    height: 105px;
  }
}

@media (max-width: 540px) {
  .jump-hero-banner {
    padding: 18px 16px;
  }
  .jump-banner-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============ Anime Modal Artwork Switcher Buttons ============ */
.modal-art-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  transform: skewX(-10deg);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease, color 0.2s ease, background 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.modal-art-btn > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transform: skewX(10deg);
  position: relative;
  z-index: 1;
}

.modal-art-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 55%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.modal-art-btn:hover {
  transform: skewX(-10deg) translateY(-2px) scale(1.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.modal-art-btn:hover::before {
  left: 130%;
}

.modal-art-btn:active {
  transform: skewX(-10deg) scale(0.97);
}

/* Per-type anime energy themes */
.modal-art-btn[data-art-key="std"]:hover {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}
.modal-art-btn[data-art-key="std"].active {
  color: #fff;
  border-color: #67e8f9;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.6), 0 0 32px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.modal-art-btn[data-art-key="scene"]:hover {
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.modal-art-btn[data-art-key="scene"].active {
  color: #fff;
  border-color: #fde68a;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.65), 0 0 32px rgba(234, 88, 12, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.modal-art-btn[data-art-key="cutin"]:hover {
  border-color: rgba(251, 113, 133, 0.75);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.4);
}
.modal-art-btn[data-art-key="cutin"].active {
  color: #fff;
  border-color: #fda4af;
  background: linear-gradient(135deg, #f43f5e, #c026d3);
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.65), 0 0 32px rgba(192, 38, 211, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

@keyframes animeArtPop {
  0% {
    opacity: 0.35;
    transform: scale(0.93);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)) brightness(1.35);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)) brightness(1);
  }
}

.anime-art-pop {
  animation: animeArtPop 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============ Tier-Based Anime Character Aura (Limited / Musou / Legend) ============ */
.modal-art-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  max-height: 340px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, rgba(10, 12, 22, 0.75) 100%);
  --aura-main: rgba(251, 191, 36, 0.55);
  --aura-sub: rgba(244, 63, 94, 0.35);
}

.modal-art-stage[data-color="red"]    { --aura-main: rgba(244, 63, 94, 0.65);  --aura-sub: rgba(249, 115, 22, 0.45); }
.modal-art-stage[data-color="blue"]   { --aura-main: rgba(56, 189, 248, 0.65); --aura-sub: rgba(59, 130, 246, 0.45); }
.modal-art-stage[data-color="green"]  { --aura-main: rgba(52, 211, 153, 0.65); --aura-sub: rgba(16, 185, 129, 0.45); }
.modal-art-stage[data-color="yellow"] { --aura-main: rgba(250, 204, 21, 0.7);  --aura-sub: rgba(245, 158, 11, 0.45); }

.modal-art-aura,
.modal-art-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

/* Limited: Element + Gold Shonen Energy Aura */
.modal-art-stage[data-tier="Limited"] {
  background: radial-gradient(circle at center, var(--aura-sub) 0%, rgba(15, 23, 42, 0.85) 68%, rgba(8, 10, 20, 0.96) 100%);
  box-shadow: inset 0 0 28px rgba(56, 189, 248, 0.18);
}
.modal-art-stage[data-tier="Limited"] .modal-art-aura {
  opacity: 1;
  background: radial-gradient(circle at 50% 56%, var(--aura-main) 0%, rgba(251, 191, 36, 0.22) 38%, transparent 70%);
  animation: auraPulse 2.4s ease-in-out infinite;
}
.modal-art-stage[data-tier="Limited"] .modal-art-ring {
  opacity: 0.7;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--aura-main) 35deg, transparent 85deg, rgba(251, 191, 36, 0.4) 180deg, transparent 225deg);
  filter: blur(18px);
  animation: auraSpin 9s linear infinite;
}
.modal-art-stage[data-tier="Limited"] #modalArtImg {
  filter: drop-shadow(0 0 14px var(--aura-main)) drop-shadow(0 8px 22px rgba(0, 0, 0, 0.7)) !important;
}

/* Musou: Blazing Crimson-Gold / Violet Aura */
.modal-art-stage[data-tier="Musou"] {
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.35) 0%, rgba(244, 63, 94, 0.18) 42%, rgba(10, 12, 22, 0.95) 85%);
  box-shadow: inset 0 0 36px rgba(192, 38, 211, 0.28);
}
.modal-art-stage[data-tier="Musou"] .modal-art-aura {
  opacity: 1;
  background: radial-gradient(circle at 50% 55%, rgba(251, 191, 36, 0.55) 0%, rgba(236, 72, 153, 0.45) 32%, rgba(139, 92, 246, 0.25) 55%, transparent 75%);
  animation: auraPulse 1.8s ease-in-out infinite;
}
.modal-art-stage[data-tier="Musou"] .modal-art-ring {
  opacity: 0.85;
  inset: -45%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(244, 63, 94, 0.65) 45deg, transparent 100deg, rgba(168, 85, 247, 0.65) 190deg, transparent 240deg, rgba(251, 191, 36, 0.55) 310deg, transparent 360deg);
  filter: blur(16px);
  animation: auraSpin 6.5s linear infinite;
}
.modal-art-stage[data-tier="Musou"] #modalArtImg {
  filter: drop-shadow(0 0 18px rgba(244, 63, 94, 0.75)) drop-shadow(0 0 30px rgba(168, 85, 247, 0.5)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.75)) !important;
}

/* Legend: Supreme Mythic Gold + Prismatic Rainbow Aura */
.modal-art-stage[data-tier="Legend"] {
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.34) 0%, rgba(245, 158, 11, 0.14) 45%, rgba(10, 12, 22, 0.96) 85%);
  box-shadow: inset 0 0 42px rgba(251, 191, 36, 0.3);
}
.modal-art-stage[data-tier="Legend"] .modal-art-aura {
  opacity: 1;
  background: radial-gradient(circle at 50% 55%, rgba(254, 240, 138, 0.65) 0%, var(--aura-main) 32%, rgba(251, 191, 36, 0.25) 58%, transparent 78%);
  animation: auraPulse 1.9s ease-in-out infinite;
}
.modal-art-stage[data-tier="Legend"] .modal-art-ring {
  opacity: 0.9;
  inset: -45%;
  background: conic-gradient(from 0deg, rgba(251, 191, 36, 0.65), rgba(244, 63, 94, 0.45), rgba(56, 189, 248, 0.45), rgba(52, 211, 153, 0.45), rgba(251, 191, 36, 0.65));
  filter: blur(20px);
  animation: auraSpin 5.5s linear infinite;
}
.modal-art-stage[data-tier="Legend"] #modalArtImg {
  filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.85)) drop-shadow(0 0 32px var(--aura-main)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.75)) !important;
}

@keyframes auraPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.82; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes auraSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
