/* ═══════════════════════════════════════════════════════
   HSRTIERLIST.COM — STELLARON DESIGN SYSTEM
   Version 4.1 · Astral Architect v1.0
═══════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #080b14;
  color: #e8eef7;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
  --void:         #08060f;
  --surface:      #0e0b1c;
  --elevated:     #151228;
  --border:       #1f1a38;
  --border-active:#342d5c;

  --text-primary:  #ede8f8;
  --text-secondary:#8a82b0;
  --text-muted:    #4a3f72;
  --text-accent:   #c8d8f0;

  --fire:       #e8622a;
  --ice:        #6dd6f5;
  --lightning:  #f5d347;
  --wind:       #4dcb8c;
  --quantum:    #9b74e8;
  --imaginary:  #e8c96a;
  --physical:   #b0bec5;

  --tier-ss-1:  #fff7a1;
  --tier-ss-2:  #ffd700;
  --tier-ss-3:  #ff8c00;
  --tier-splus-1:#ffd700;
  --tier-splus-2:#ff8c00;
  --tier-s-1:   #ffd700;
  --tier-s-2:   #c8a000;
  --tier-a-1:   #9b74e8;
  --tier-a-2:   #6b46c1;
  --tier-b-1:   #4dcb8c;
  --tier-b-2:   #2d8c5a;
  --tier-c-1:   #4a90d9;
  --tier-c-2:   #2f5f8f;

  --nav-h: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid rgba(196,181,253,0.06);
  transition: border-color 0.3s ease;
}

/* backdrop-filter on pseudo-element so nav doesn't become a fixed-position containing block */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav.scrolled::before {
  background: rgba(8, 11, 20, 0.96);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-mark {
  display: flex;
  align-items: center;
}

.nav-brand-text {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.nav-brand-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.nav-brand-dot {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 2px;
}

/* Logo image */
.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

/* Soon pill */
.nav-soon-pill {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.6;
}

.nav-link-soon {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.nav-link-active {
  color: var(--tier-ss-2) !important;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-version-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--tier-ss-2);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 20px;
  padding: 3px 10px;
  margin-left: 8px;
  white-space: nowrap;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  z-index: 1010;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-in-out), opacity 0.3s, background 0.2s;
}

.nav-hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--text-primary);
}

.nav-hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 52px;
}

/* Star canvas */
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#starCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Gradient overlay */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(46, 74, 106, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 60%, rgba(155, 116, 232, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255, 140, 0, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(8,6,15,0.3) 0%, rgba(8,6,15,0.7) 60%, rgba(8,6,15,1) 100%);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 760px;
  width: 100%;
  padding: 0 max(24px, 4vw);
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 0.1s forwards;
}

.eyebrow-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 216, 240, 0.4), transparent);
}

.eyebrow-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(18px, 2.8vw, 30px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Hero title */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-out) 0.25s forwards;
}

.hero-title-row1,
.hero-title-row2 {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.hero-title-row1 {
  font-size: clamp(16px, 2.8vw, 36px);
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, #fff7f0 0%, #e8eef7 50%, #8fa3bc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.hero-title-row2 {
  font-size: clamp(36px, 6.5vw, 78px);
  background: linear-gradient(135deg, #fff7a1 0%, #ffd700 30%, #ff8c00 65%, #e84020 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroFadeUp 0.9s var(--ease-out) 0.25s forwards,
             goldShift 5s ease infinite 1.2s;
  filter: drop-shadow(0 0 40px rgba(255, 180, 0, 0.25));
}

/* Hero meta row */
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-version-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--tier-ss-2);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 4px 14px;
}

.hero-update-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-meta-divider {
  color: var(--text-muted);
}

/* Hero desc */
.hero-desc {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 0.55s forwards;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 32px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-lbl {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* CTA button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #080b14;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  border-radius: 40px;
  padding: 14px 32px;
  transition: transform 0.2s var(--spring), box-shadow 0.2s ease, opacity 0.2s;
  box-shadow: 0 4px 24px rgba(255, 180, 0, 0.3);
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 0.85s forwards;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255, 180, 0, 0.45);
}

.hero-cta:active {
  transform: translateY(0) scale(0.98);
}

/* ═══════════════════════════════════════════════════════
   SEO INTRO
═══════════════════════════════════════════════════════ */
.seo-intro {
  position: relative;
  padding: 60px 0 48px;
  background: var(--void);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.intro-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.intro-text p {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.85;
  margin-bottom: 12px;
}

.intro-text p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.intro-tags-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intro-tag-row {
  display: flex;
  gap: 8px;
}

.intro-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.tag-fire, .tag-quantum, .tag-lightning, .tag-wind {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

.intro-update-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   TIER LIST SECTION
═══════════════════════════════════════════════════════ */
.tier-list-section {
  position: relative;
  padding-bottom: 80px;
  background: var(--void);
}

/* Section header */
.tier-list-top {
  padding: 0 0 32px;
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: rgba(8, 11, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 45, 66, 0.5);
  padding: 20px 0;
}

.tier-list-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tier-list-section-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: #e8eef7;
  letter-spacing: 0.05em;
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.18);
}

.tier-list-section-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  margin-top: 4px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid rgba(46, 74, 106, 0.7);
  color: var(--text-secondary);
  background: rgba(15, 21, 32, 0.7);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Flash layer on press */
.filter-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.filter-btn:active {
  transform: scale(0.93);
  transition-duration: 0.07s;
}

.filter-btn:active::after {
  opacity: 0.1;
  transform: scale(1);
}

/* Default "All" button hover */
.filter-btn:not(.filter-element):hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: rgba(46, 74, 106, 0.3);
  transform: translateY(-1px);
}

/* Element buttons: themed per --fc color variable */
.filter-btn.filter-element:hover {
  border-color: var(--fc);
  color: var(--fc);
  background: color-mix(in srgb, var(--fc) 12%, rgba(15, 21, 32, 0.8));
  box-shadow: 0 0 16px color-mix(in srgb, var(--fc) 40%, transparent), 0 2px 8px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px) scale(1.03);
}

/* Active: element color fills the button */
.filter-btn.filter-element.active {
  border-color: var(--fc);
  color: var(--fc);
  background: color-mix(in srgb, var(--fc) 15%, rgba(8, 11, 20, 0.9));
  box-shadow:
    0 0 20px color-mix(in srgb, var(--fc) 50%, transparent),
    0 0 0 1px color-mix(in srgb, var(--fc) 28%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--fc) 35%, transparent);
}

/* Active: "All" button — gold */
.filter-btn[data-filter="all"].active {
  border-color: rgba(255, 215, 0, 0.75);
  color: rgba(255, 215, 0, 0.95);
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.35), 0 0 0 1px rgba(255, 215, 0, 0.22), inset 0 1px 0 rgba(255, 215, 0, 0.25);
}

/* ─── TIER ROWS ─── */
.tier-list-container {
  margin-top: 0;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

.tier-row {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 140px;
  border-bottom: 1px solid rgba(30, 45, 66, 0.3);
  transition: background 0.3s ease;
}

.tier-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tier-bg, transparent);
  pointer-events: none;
}

/* Path watermark behind each tier */
.tier-row::after {
  content: attr(data-tier-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 180px;
  line-height: 1;
  opacity: 0.025;
  color: var(--tier-primary, #fff);
  pointer-events: none;
  user-select: none;
}

/* ─── TIER LABEL ─── */
.tier-label-col {
  position: sticky;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  background: inherit;
  border-right: 3px solid var(--tier-primary, #fff);
  z-index: 10;
  gap: 8px;
}

.tier-label-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0.05em;
  background: var(--tier-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: labelShimmer 5s ease infinite;
  filter: drop-shadow(0 0 16px var(--tier-glow, transparent));
}

.tier-count {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── CHARACTER CARDS WRAP ─── */
.tier-chars {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 7px;
  padding: 14px 18px 14px 14px;
  min-height: 140px;
}

/* ─── CHARACTER CARD ─── */
.char-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  width: 90px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  background: var(--surface);
  transform-origin: center bottom;
  transition:
    transform 0.25s var(--spring),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    z-index 0s;
  will-change: transform;
}

/* SS Tier cards are slightly larger */
.tier-row[data-tier="ss"] .char-card {
  width: 108px;
  animation: ssCardBreathe 5s ease-in-out infinite;
}

/* Placeholder (no image) */
.char-card.no-image {
  background: linear-gradient(135deg, var(--surface), var(--elevated));
  display: flex;
  align-items: center;
  justify-content: center;
}

.char-card.no-image .card-placeholder-icon {
  font-size: 28px;
  opacity: 0.3;
}

/* Card portrait image */
.char-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s var(--ease-out);
  pointer-events: none;
}

/* Bottom gradient + name */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 6px 7px;
  background: linear-gradient(to top, rgba(8,11,20,0.95) 0%, rgba(8,11,20,0.6) 50%, transparent 100%);
}

.char-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5-star gold border + shimmer */
.char-card[data-stars="5"] {
  border-color: rgba(255, 200, 0, 0.35);
}

/* 4-star purple border */
.char-card[data-stars="4"] {
  border-color: rgba(155, 116, 232, 0.3);
}

/* Element badge — top left */
.card-element-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(0.6) translateY(-4px);
  transition: opacity 0.2s, transform 0.2s var(--spring);
}

/* Star indicator — top right */
.card-star-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 9px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s var(--spring);
}

/* Shimmer sweep */
.char-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 48%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.12) 52%,
    transparent 70%
  );
  transform: translateX(-150%) skewX(-10deg);
  transition: none;
  z-index: 3;
  pointer-events: none;
}

/* ─── CARD HOVER STATE ─── */
@media (hover: hover) {
  .char-card:hover {
    transform: scale(1.22) translateY(-10px);
    z-index: 50;
    border-color: var(--element-color, rgba(255, 215, 0, 0.6));
    box-shadow:
      0 0 0 1.5px var(--element-color, rgba(255, 215, 0, 0.3)),
      0 12px 40px rgba(0, 0, 0, 0.7),
      0 0 30px var(--element-glow, rgba(255, 215, 0, 0.2)),
      0 0 60px var(--element-glow-wide, rgba(255, 215, 0, 0.08));
  }

  .char-card:hover img {
    transform: scale(1.08);
  }

  .char-card:hover::before {
    transform: translateX(250%) skewX(-10deg);
    transition: transform 0.55s ease;
  }

  .char-card:hover .card-element-badge,
  .char-card:hover .card-star-badge {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* SS tier permanent gold shimmer on cards */
.tier-row[data-tier="ss"] .char-card[data-stars="5"] {
  animation: ssCardGlow 4s ease-in-out infinite;
}

/* Load-in animation */
.char-card {
  opacity: 0;
  transform: translateY(-20px);
}

.char-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--spring),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.char-card.visible:hover {
  transform: scale(1.22) translateY(-10px);
}

/* ═══════════════════════════════════════════════════════
   CHAR TOOLTIP
═══════════════════════════════════════════════════════ */
.char-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 220px;
  background: var(--elevated);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(46, 74, 106, 0.3);
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.18s ease, transform 0.18s var(--spring);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.char-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tooltip-name {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.tooltip-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tooltip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tooltip-label {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 46px;
}

.tooltip-value {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.tooltip-tier-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.tooltip-stars {
  color: var(--tier-ss-2);
  font-size: 11px;
  letter-spacing: 1px;
}

.tooltip-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.tooltip-role {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   PARTICLES
═══════════════════════════════════════════════════════ */
.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
}

/* ═══════════════════════════════════════════════════════
   CONTENT SECTIONS
═══════════════════════════════════════════════════════ */
.content-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--void)    0%,
    var(--surface) 8%,
    var(--surface) 92%,
    var(--void)   100%
  );
}

/* Cosmic glow orb behind each section */
.content-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 215, 0, 0.025) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.content-section > * {
  position: relative;
  z-index: 1;
}

.content-section-alt {
  background: linear-gradient(180deg,
    var(--void) 0%,
    rgba(14, 20, 36, 0.95) 30%,
    rgba(12, 17, 30, 0.9) 70%,
    var(--void) 100%
  );
}

.content-container {
  max-width: 1100px;
}

.content-section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.content-lead {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 780px;
}

.content-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* SS Analysis cards */
.char-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.char-analysis-card {
  background: linear-gradient(160deg, rgba(22, 32, 46, 0.9) 0%, rgba(15, 21, 32, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--spring);
}

.char-analysis-card:hover {
  border-color: rgba(255, 215, 0, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.06);
  transform: translateY(-2px);
}

.analysis-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.04) 0%, transparent 70%);
  position: relative;
}

.analysis-card-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--tier-ss-2), transparent);
  border-radius: 2px 0 0 0;
}

.analysis-card-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: 0.03em;
}

.analysis-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.char-analysis-card p {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.char-analysis-card p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.tier-footnote {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.content-note {
  font-family: 'Barlow', sans-serif;
  font-style: normal;
  font-size: 14px;
  color: var(--text-muted);
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

/* Method cards */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s;
}

.method-card:hover {
  border-color: var(--border-active);
}

.method-marker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 215, 0, 0.35);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.method-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.method-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Team building */
.team-building-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 32px;
}

.team-building-section h3 {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.team-building-section > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.team-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.team-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--tier-ss-2);
  font-size: 11px;
  top: 3px;
}

.team-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════ */
.faq-section {
  background: linear-gradient(180deg, var(--void) 0%, var(--surface) 30%, var(--surface) 100%);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--border-active);
}

.faq-question {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  gap: 12px;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-in-out), color 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--tier-ss-2);
}

.faq-item[open] .faq-question {
  color: var(--text-primary);
}

.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-top: 14px;
}

.faq-answer p strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   TIER LIST EXPLANATION
═══════════════════════════════════════════════════════ */
.explain-section {
  background: var(--void);
}
.explain-section::before {
  left: -150px;
  right: auto;
  background: radial-gradient(ellipse, rgba(155, 116, 232, 0.03) 0%, transparent 70%);
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.explain-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: border-color 0.2s;
}

.explain-card:hover {
  border-color: var(--border-active);
}

.explain-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  margin-top: 2px;
}

.explain-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.explain-body p {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.7;
}

.explain-note {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--tier-ss-2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.explain-note strong {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════
   RATING EXPLANATION
═══════════════════════════════════════════════════════ */
.rating-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rating-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.rating-row:last-child {
  border-bottom: none;
}

.rating-row:hover {
  background: var(--elevated);
}

.rating-label-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 24px;
  border-right: 1px solid var(--border);
}

.rating-category {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.rating-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  font-family: 'Barlow', sans-serif;
}

.rating-bar-col {
  padding: 18px 24px;
  display: flex;
  align-items: center;
}

.rating-examples-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.rating-example {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}

.rating-example.example-high {
  background: rgba(255, 215, 0, 0.06);
  color: rgba(255, 215, 0, 0.85);
  border-left: 2px solid rgba(255, 215, 0, 0.4);
}

.rating-example.example-mid {
  background: rgba(200, 210, 230, 0.04);
  color: var(--text-secondary);
  border-left: 2px solid rgba(200, 210, 230, 0.2);
}

.rating-example.example-low {
  background: rgba(100, 110, 130, 0.04);
  color: var(--text-muted);
  border-left: 2px solid rgba(100, 110, 130, 0.2);
}

@media (max-width: 900px) {
  .explain-grid {
    grid-template-columns: 1fr;
  }

  .rating-row {
    grid-template-columns: 1fr;
  }

  .rating-label-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }

  .rating-bar-col {
    padding-top: 12px;
  }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, var(--void) 0%, #060410 100%);
  border-top: 1px solid rgba(155, 116, 232, 0.12);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-nav-title {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-nav li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav li a:hover {
  color: var(--text-primary);
}

.footer-nav-soon {
  opacity: 0.45;
  pointer-events: none;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.footer-version {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-version strong {
  color: var(--tier-ss-2);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-made-with {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   HERO QUICK JUMP
═══════════════════════════════════════════════════════ */
.hero-quickjump {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 28px;
  justify-content: center;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 1.1s forwards;
}

.quickjump-link {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(46, 74, 106, 0.6);
  color: var(--text-secondary);
  background: rgba(8, 11, 20, 0.5);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quickjump-link:hover {
  border-color: rgba(255, 215, 0, 0.45);
  color: rgba(255, 215, 0, 0.9);
  background: rgba(255, 215, 0, 0.06);
}

/* ═══════════════════════════════════════════════════════
   PATCH HIGHLIGHTS SECTION
═══════════════════════════════════════════════════════ */
.patch-section {
  background: var(--void);
  padding-bottom: 64px;
}

.patch-section::before {
  background: radial-gradient(ellipse, rgba(155, 116, 232, 0.04) 0%, transparent 70%);
  left: auto;
  right: -100px;
}

.patch-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.patch-version-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: rgba(255, 215, 0, 0.9);
}

.patch-eyebrow-date {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.patch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.patch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.patch-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.patch-card-label {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.patch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.patch-list li {
  font-size: 13px;
  line-height: 1.5;
}

.patch-list li strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

.patch-list li span {
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── PATCH NEW CHARS ─── */
.patch-new-chars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.patch-char-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.patch-char-portrait {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  position: relative;
}

.patch-char-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.patch-char-tier-pill {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 9px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
}

.patch-char-tier-pill.tier-ss {
  background: linear-gradient(135deg, rgba(255,215,0,0.85), rgba(255,140,0,0.85));
  color: #0e0b1c;
}

.patch-char-tier-pill.tier-s {
  background: linear-gradient(135deg, rgba(109,214,245,0.85), rgba(74,144,217,0.85));
  color: #0e0b1c;
}

.patch-char-info {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
}

.patch-char-info strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

.patch-char-info span {
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   BEST META TEAMS SECTION
═══════════════════════════════════════════════════════ */
.best-teams-section {
  padding-bottom: 80px;
}

.team-comp-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.team-comp-card {
  background: linear-gradient(135deg, rgba(22, 32, 46, 0.8) 0%, rgba(15, 21, 32, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--spring);
}

.team-comp-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.team-comp-left {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.team-rank {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 215, 0, 0.4);
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 24px;
}

.team-info {
  flex: 1;
}

.team-name {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.team-mode-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mode-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}

.mode-moc { background: rgba(155, 116, 232, 0.12); color: rgba(155, 116, 232, 0.9); border: 1px solid rgba(155, 116, 232, 0.25); }
.mode-as  { background: rgba(232, 98, 42, 0.1);   color: rgba(232, 98, 42, 0.9);   border: 1px solid rgba(232, 98, 42, 0.22); }
.mode-pf  { background: rgba(109, 214, 245, 0.1); color: rgba(109, 214, 245, 0.9); border: 1px solid rgba(109, 214, 245, 0.22); }

.team-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.team-slots {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.team-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  min-width: 88px;
  text-align: center;
  transition: border-color 0.2s;
}

.slot-dps     { border-top: 2px solid rgba(232, 98, 42, 0.5); }
.slot-support { border-top: 2px solid rgba(109, 214, 245, 0.4); }
.slot-sustain { border-top: 2px solid rgba(77, 203, 140, 0.4); }

.slot-role {
  font-family: 'Barlow', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.slot-char {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.slot-tier-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 215, 0, 0.6);
}

.teams-note {
  font-size: 13px;
  color: var(--text-muted);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  line-height: 1.65;
}

.teams-note strong {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   CHARACTER SPOTLIGHT SECTION
═══════════════════════════════════════════════════════ */
.char-spotlight-section {
  padding-bottom: 80px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.spotlight-card {
  background: linear-gradient(160deg, rgba(22, 32, 46, 0.9) 0%, rgba(12, 18, 28, 0.97) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--spring);
}

.spotlight-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.spotlight-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.spotlight-header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.spotlight-portrait {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.spotlight-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.4s var(--ease-out);
  display: block;
}

.spotlight-card:hover .spotlight-portrait-img {
  transform: scale(1.06);
}

.spotlight-tier-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.badge-ss {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
}

.badge-sp {
  background: linear-gradient(135deg, rgba(155, 116, 232, 0.15), rgba(107, 70, 193, 0.1));
  border: 1px solid rgba(155, 116, 232, 0.35);
  color: #9b74e8;
}

.spotlight-title-block {
  flex: 1;
}

.spotlight-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.spotlight-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.spotlight-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.tag-path-dest { color: rgba(232, 98, 42, 0.85);   border-color: rgba(232, 98, 42, 0.25);   background: rgba(232, 98, 42, 0.06); }
.tag-path-harm { color: rgba(232, 201, 106, 0.85);  border-color: rgba(232, 201, 106, 0.25); background: rgba(232, 201, 106, 0.06); }
.tag-path-hunt { color: rgba(77, 203, 140, 0.85);   border-color: rgba(77, 203, 140, 0.25);  background: rgba(77, 203, 140, 0.06); }
.tag-path-pres { color: rgba(109, 214, 245, 0.85);  border-color: rgba(109, 214, 245, 0.25); background: rgba(109, 214, 245, 0.06); }
.tag-star      { color: rgba(255, 215, 0, 0.7);     border-color: rgba(255, 215, 0, 0.2);    background: rgba(255, 215, 0, 0.05); }

.spotlight-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.spotlight-summary strong {
  color: var(--text-primary);
}

.spotlight-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 1px solid var(--border);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-label {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.breakdown-value {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.spotlight-verdict {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.spotlight-verdict strong {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════
   FREE TO PLAY SECTION
═══════════════════════════════════════════════════════ */
.f2p-section {
  padding-bottom: 80px;
}

.subsection-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 20px;
  letter-spacing: 0.02em;
}

.subsection-title:first-of-type {
  margin-top: 8px;
}

.f2p-5star-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}

.f2p-featured-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.04) 0%, rgba(15, 21, 32, 0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.f2p-featured-card:hover {
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.06);
}

.f2p-featured-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.f2p-tier-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  flex-shrink: 0;
  line-height: 1.4;
}

.f2p-featured-header h4 {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.f2p-role-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.f2p-featured-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.f2p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.f2p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--spring);
  display: flex;
  flex-direction: column;
}

.f2p-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.f2p-card-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.f2p-card-role {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.f2p-card-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.f2p-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 14px 18px;
  flex: 1;
}

.f2p-card p em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 600;
}

.f2p-card-footer {
  padding: 8px 18px 12px;
  margin-top: auto;
}

.f2p-obtain {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.f2p-budget-team {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.f2p-budget-team h3 {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.f2p-budget-team > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.budget-team-comp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.budget-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
}

.budget-role {
  font-family: 'Barlow', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.budget-char {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.budget-note {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.budget-upgrade-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════
   FOOTER ADDITIONS
═══════════════════════════════════════════════════════ */
.footer-version-block {
  margin-bottom: 12px;
}

.footer-version-num {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 215, 0, 0.85);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.footer-version-date {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-next-patch {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.footer-method-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.65;
  opacity: 0.7;
}

.faq-answer a {
  color: rgba(109, 214, 245, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: rgba(109, 214, 245, 1);
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS & KEYFRAMES
═══════════════════════════════════════════════════════ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes ssCardGlow {
  0%   { box-shadow: 0 0 8px rgba(255, 200, 0, 0.15), 0 0 0 1px rgba(255, 200, 0, 0.25); }
  50%  { box-shadow: 0 0 16px rgba(255, 160, 0, 0.25), 0 0 0 1px rgba(255, 160, 0, 0.4); }
  100% { box-shadow: 0 0 8px rgba(255, 200, 0, 0.15), 0 0 0 1px rgba(255, 200, 0, 0.25); }
}

@keyframes particleFloat {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx, 0), var(--dy, -60px)) scale(0); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   ELEMENT COLORS ON CARDS
═══════════════════════════════════════════════════════ */
.char-card[data-element="fire"]      { --element-color: rgba(232,98,42,0.7);   --element-glow: rgba(232,98,42,0.25);  --element-glow-wide: rgba(232,98,42,0.08); }
.char-card[data-element="ice"]       { --element-color: rgba(109,214,245,0.7); --element-glow: rgba(109,214,245,0.2); --element-glow-wide: rgba(109,214,245,0.07); }
.char-card[data-element="lightning"] { --element-color: rgba(245,211,71,0.7);  --element-glow: rgba(245,211,71,0.22); --element-glow-wide: rgba(245,211,71,0.08); }
.char-card[data-element="wind"]      { --element-color: rgba(77,203,140,0.7);  --element-glow: rgba(77,203,140,0.2);  --element-glow-wide: rgba(77,203,140,0.07); }
.char-card[data-element="quantum"]   { --element-color: rgba(155,116,232,0.7); --element-glow: rgba(155,116,232,0.25);--element-glow-wide: rgba(155,116,232,0.08); }
.char-card[data-element="imaginary"] { --element-color: rgba(232,201,106,0.7); --element-glow: rgba(232,201,106,0.22);--element-glow-wide: rgba(232,201,106,0.07); }
.char-card[data-element="physical"]  { --element-color: rgba(176,190,197,0.7); --element-glow: rgba(176,190,197,0.18);--element-glow-wide: rgba(176,190,197,0.06); }

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Nav mobile */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--nav-h) + 16px) 16px 28px;
    background: rgba(9, 13, 22, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform 0.35s var(--ease-in-out);
    z-index: 1002;
    list-style: none;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    width: 100%;
    font-size: 20px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    text-align: left;
  }

  .nav-version-item {
    margin-top: 12px;
    padding-left: 16px;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: transparent;
    pointer-events: none;
  }

  .nav-overlay.visible {
    pointer-events: auto;
  }

  /* Hero */
  .hero {
    padding: calc(var(--nav-h) + 24px) 0 60px;
    justify-content: center;
  }

  .hero-content {
    padding: 0 20px;
    max-width: 100%;
  }

  .hero-stats {
    gap: 0;
  }

  .hero-stat {
    padding: 0 16px;
  }

  /* Intro */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Tier list header */
  .tier-list-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-bar {
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    width: 100%;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-group {
    flex-wrap: nowrap;
  }

  /* Tier rows — horizontal scroll */
  .tier-row {
    grid-template-columns: 80px 1fr;
    min-height: 116px;
  }

  .tier-row::after {
    font-size: 100px;
  }

  .tier-label-text {
    font-size: 36px;
  }

  .tier-chars {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 12px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    align-content: flex-start;
    align-items: flex-start;
    cursor: grab;
  }

  .tier-chars::-webkit-scrollbar {
    display: none;
  }

  .tier-chars:active {
    cursor: grabbing;
  }

  /* Cards on mobile */
  .char-card {
    width: 74px;
  }

  .tier-row[data-tier="ss"] .char-card {
    width: 82px;
  }

  /* Content sections */
  .char-analysis-grid {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-building-section {
    padding: 20px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Patch section */
  .patch-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Best teams */
  .team-comp-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-slots {
    gap: 6px;
    flex-wrap: wrap;
  }

  .team-slot {
    min-width: 76px;
    flex: 1;
  }

  /* Character spotlights */
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-portrait {
    width: 72px;
    height: 72px;
  }

  .patch-char-portrait {
    width: 54px;
    height: 54px;
  }

  /* F2P */
  .f2p-5star-grid {
    grid-template-columns: 1fr;
  }

  .f2p-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .budget-team-comp {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Quick jump */
  .hero-quickjump {
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .method-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .f2p-grid {
    grid-template-columns: 1fr;
  }

  .budget-team-comp {
    grid-template-columns: 1fr 1fr;
  }

  .team-slots {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .tier-row {
    grid-template-columns: 56px 1fr;
  }

  .tier-label-col {
    padding: 10px 4px;
  }

  .tier-label-text {
    font-size: 28px;
  }

  .tier-count {
    font-size: 8px;
  }

  .char-card {
    width: 60px;
  }

  .tier-row[data-tier="ss"] .char-card {
    width: 66px;
  }

  .char-name {
    font-size: 7px;
  }

  .hero-stat {
    padding: 0 10px;
  }

  .stat-num {
    font-size: 24px;
  }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── FILTERED STATE ─── */
.char-card.filtered-out {
  opacity: 0.18;
  transform: scale(0.88);
  pointer-events: none;
  filter: grayscale(0.5);
}

.char-card.filtered-out.visible {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║   STELLARON 3D DEPTH SYSTEM — ASTRAL ARCHITECT v2.0      ║
   ║   Layer-by-layer: Nav → Hero → Cards → Content → Cosmos  ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* ─── LAYER 1: NAV — Floating Glass Bridge ─── */

/* ─── LAYER 2: HERO — Deep Space Parallax ─── */
/* CSS-var-driven transforms so JS can drive parallax independently */
.hero-canvas-wrap {
  transform: translate(var(--hero-mx, 0px), calc(var(--hero-my, 0px) + var(--hero-sy, 0px)));
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.hero-gradient {
  transition: transform 0.28s ease-out;
  will-change: transform;
}

.hero-content {
  transition: transform 0.18s ease-out;
  will-change: transform;
}

/* Hero banner area — character PNG will be placed here in future */

/* ─── LAYER 3: CHARACTER CARDS — Holographic 3D ─── */

/* Enhanced shimmer (more vivid) */
.char-card::before {
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255, 255, 255, 0.07) 40%,
    rgba(255, 255, 255, 0.26) 50%,
    rgba(255, 255, 255, 0.07) 60%,
    transparent 75%
  );
}

/* Holographic foil — full-spectrum rainbow + tracked specular hot-spot.
   mix-blend-mode:screen lights up character art like a real holo trading card. */
.char-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, 0.6)  0%,
      rgba(230, 200, 255, 0.38) 16%,
      rgba(160, 255, 245, 0.22) 34%,
      transparent 56%
    ),
    linear-gradient(
      var(--foil-angle, 135deg),
      rgba(255, 30,  110, 0.32)  0%,
      rgba(255, 160, 0,   0.38) 18%,
      rgba(245, 240, 0,   0.32) 33%,
      rgba(0,   255, 140, 0.32) 50%,
      rgba(0,   185, 255, 0.38) 66%,
      rgba(150, 0,   255, 0.32) 82%,
      rgba(255, 30,  110, 0.32) 100%
    );
  opacity: 0;
  transition: opacity 0.22s ease;
  mix-blend-mode: screen;
}

@media (hover: hover) {
  .char-card:hover::after {
    opacity: 0.72;
  }

  /* CRITICAL: transition excludes transform — instant tilt response from JS, no 400ms lag */
  /* Smooth scale entry handled by .is-entering class added momentarily by initCardTilt() */
  .char-card:hover,
  .char-card.visible:hover {
    transition:
      box-shadow 0.14s ease,
      border-color 0.14s ease;
    transform: perspective(680px)
               rotateX(var(--rx, 0deg))
               rotateY(var(--ry, 0deg))
               scale(1.22)
               translateY(-10px);
    z-index: 50;
    border-color: var(--element-color, rgba(255, 215, 0, 0.72));
    box-shadow:
      0 0 0 1.5px var(--element-color, rgba(255, 215, 0, 0.52)),
      0 0 0 5px var(--element-glow, rgba(255, 215, 0, 0.12)),
      0 24px 70px rgba(0, 0, 0, 0.92),
      0 0 60px var(--element-glow, rgba(255, 215, 0, 0.32)),
      0 0 120px var(--element-glow-wide, rgba(255, 215, 0, 0.13)),
      inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
      inset 0 -1px 0 rgba(0, 0, 0, 0.4),
      inset 0 0 30px rgba(255, 255, 255, 0.04);
  }

  /* Smooth entry: JS adds .is-entering for 280ms on mouseenter — only this gets a spring */
  .char-card.is-entering:hover,
  .char-card.visible.is-entering:hover {
    transition:
      transform 0.28s var(--spring),
      box-shadow 0.14s ease,
      border-color 0.14s ease;
  }

  /* 5-star enhanced hover — more dramatic depth */
  .char-card[data-stars="5"]:hover,
  .char-card.visible[data-stars="5"]:hover {
    box-shadow:
      0 0 0 1.5px var(--element-color, rgba(255, 215, 0, 0.55)),
      0 0 0 3.5px rgba(255, 215, 0, 0.06),
      0 22px 65px rgba(0, 0, 0, 0.92),
      0 0 55px var(--element-glow, rgba(255, 215, 0, 0.3)),
      0 0 110px var(--element-glow-wide, rgba(255, 215, 0, 0.11)),
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -1px 0 rgba(0, 0, 0, 0.35),
      inset 0 0 32px rgba(255, 215, 0, 0.03);
  }
}

/* Resting depth — subtle ambient shadow on all cards */
.char-card[data-stars="5"] {
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.55),
    inset 0 0 0 0.5px rgba(255, 215, 0, 0.08);
}

.char-card[data-stars="4"] {
  box-shadow:
    0 3px 14px rgba(0, 0, 0, 0.5),
    inset 0 0 0 0.5px rgba(155, 116, 232, 0.08);
}

/* SS tier: prismatic border cycles through all 7 element colors */
.tier-row[data-tier="ss"] .char-card[data-stars="5"] {
  animation: ssPrismatic 6s ease-in-out infinite;
}

/* ─── LAYER 4: TIER ROWS — Dimensional Signage ─── */

/* 3D depth wall to the right of label column */
.tier-label-col {
  box-shadow:
    5px 0 28px rgba(0, 0, 0, 0.6),
    12px 0 50px rgba(0, 0, 0, 0.22);
}

/* Tier label text — 3-layer drop-shadow extrusion (no layout-breaking transforms) */
.tier-label-text {
  filter:
    drop-shadow(0 0 28px var(--tier-glow, transparent))
    drop-shadow(0 2px 0 rgba(0, 0, 0, 1))
    drop-shadow(0 5px 0 rgba(0, 0, 0, 0.65))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

/* Watermark: keep original positioning, no broken perspective */
.tier-row::after {
  transform: translateY(-50%);
}

/* Row inset depth — thin light top, shadow bottom, inner vignette */
.tier-row {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    inset 0 0 90px rgba(0, 0, 0, 0.14);
}

/* ─── LAYER 5: CONTENT SECTIONS — 3D Card Tilt ─── */

.method-card {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s var(--spring), border-color 0.2s, box-shadow 0.2s;
  will-change: transform;
}

.method-card:hover {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px);
  border-color: var(--border-active);
  box-shadow:
    0 12px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 215, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.explain-card {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s var(--spring), border-color 0.2s, box-shadow 0.2s;
  will-change: transform;
}

.explain-card:hover {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
  border-color: var(--border-active);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.faq-item {
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.22s var(--spring), border-color 0.2s, box-shadow 0.2s;
  will-change: transform;
}

/* ─── LAYER 6: FOOTER — Underground Station Texture ─── */
.footer {
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 100%, rgba(155, 116, 232, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(77, 203, 140, 0.03) 0%, transparent 65%);
}

.footer > .container {
  position: relative;
  z-index: 1;
}

/* ─── LAYER 7: FLOATING CRYSTAL SHARDS ─── */
/* Spawned by JS as .crystal-shard elements */
.crystal-shard {
  position: fixed;
  pointer-events: none;
  z-index: 4; /* visible above page content, below nav */
  animation: crystalFloat var(--crystal-duration, 22s) var(--crystal-delay, 0s) infinite ease-in-out;
}

.crystal-shard::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 82% 18%, 100% 50%, 82% 82%, 50% 100%, 18% 82%, 0% 50%, 18% 18%);
  background: var(--crystal-color, rgba(155, 116, 232, 0.08));
  border: 1px solid var(--crystal-border, rgba(155, 116, 232, 0.2));
  backdrop-filter: blur(1px);
}

.crystal-shard::after {
  content: '';
  position: absolute;
  top: 28%;
  left: 28%;
  right: 28%;
  bottom: 28%;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: var(--crystal-border, rgba(155, 116, 232, 0.14));
}

/* ─── 3D SCROLL REVEAL (override flat version) ─── */
.reveal {
  opacity: 0;
  transform: perspective(900px) rotateX(-9deg) translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: perspective(900px) rotateX(0deg) translateY(0);
}

/* ─── MOBILE: DISABLE HEAVY 3D ─── */
@media (max-width: 900px) {
  .method-card,
  .explain-card,
  .faq-item {
    transform: none !important;
    will-change: auto;
  }

  .tier-label-text {
    transform: none;
    filter: drop-shadow(0 0 16px var(--tier-glow, transparent));
  }

  .crystal-shard,
  .hero-ring {
    display: none;
  }

  .tier-row::after {
    transform: translateY(-50%);
  }
}

/* ─── NEW KEYFRAMES ─── */

@keyframes crystalFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.45;
  }
  25% {
    transform: translateY(-22px) rotate(90deg) scale(1.07);
    opacity: 0.68;
  }
  50% {
    transform: translateY(-10px) rotate(180deg) scale(0.92);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-32px) rotate(270deg) scale(1.04);
    opacity: 0.72;
  }
}

/* Per-tier atmosphere — each row radiates its tier color from the label side */
.tier-row[data-tier="ss"] {
  background: linear-gradient(90deg, rgba(255,215,0,0.04), rgba(255,140,0,0.025), transparent) !important;
  border-top: 1px solid rgba(255,215,0,0.08);
  border-bottom: 1px solid rgba(255,215,0,0.08);
}
.tier-row[data-tier="splus"] { background: linear-gradient(90deg, rgba(255,120,0,0.04)    0%, transparent 40%) !important; }
.tier-row[data-tier="s"]     { background: linear-gradient(90deg, rgba(200,160,0,0.032)   0%, transparent 40%) !important; }
.tier-row[data-tier="a"]     { background: linear-gradient(90deg, rgba(155,116,232,0.045) 0%, transparent 40%) !important; }
.tier-row[data-tier="b"]     { background: linear-gradient(90deg, rgba(77,203,140,0.038)  0%, transparent 40%) !important; }
.tier-row[data-tier="c"]     { background: linear-gradient(90deg, rgba(74,144,217,0.038)  0%, transparent 40%) !important; }

@keyframes ssPrismatic {
  0%, 100% { box-shadow: 0 0 16px rgba(255,200,0,0.24),   0 0 0 1px rgba(255,200,0,0.42),   0 5px 28px rgba(0,0,0,0.6); }
  16%       { box-shadow: 0 0 18px rgba(255,75,130,0.3),   0 0 0 1px rgba(255,75,130,0.5),   0 5px 28px rgba(0,0,0,0.6); }
  33%       { box-shadow: 0 0 18px rgba(90,210,255,0.3),   0 0 0 1px rgba(90,210,255,0.5),   0 5px 28px rgba(0,0,0,0.6); }
  50%       { box-shadow: 0 0 18px rgba(155,116,232,0.3),  0 0 0 1px rgba(155,116,232,0.5),  0 5px 28px rgba(0,0,0,0.6); }
  66%       { box-shadow: 0 0 18px rgba(77,203,140,0.3),   0 0 0 1px rgba(77,203,140,0.5),   0 5px 28px rgba(0,0,0,0.6); }
  83%       { box-shadow: 0 0 18px rgba(245,211,71,0.3),   0 0 0 1px rgba(245,211,71,0.5),   0 5px 28px rgba(0,0,0,0.6); }
}

.tier-row[data-tier="ss"] .tier-label-text {
  font-size: clamp(52px, 8vw, 96px);
  animation: ssLabelBreathe 5s ease-in-out infinite;
}

@keyframes ssLabelBreathe {
  0%,100% { filter: drop-shadow(0 0 16px rgba(255,180,0,0.3)); }
  50%     { filter: drop-shadow(0 0 32px rgba(255,180,0,0.55)); }
}

@keyframes ssCardBreathe {
  0%,100% { box-shadow: 0 0 8px rgba(255,180,0,0.08); border-color: rgba(255,200,0,0.25); }
  50%     { box-shadow: 0 0 20px rgba(255,180,0,0.22); border-color: rgba(255,200,0,0.45); }
}

@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,6,15,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 12px 0 20px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-link { display: block; padding: 12px 20px; font-size: 13px; border-radius: 0; text-decoration: none; }
  .nav-version-badge { margin: 8px 20px 0; display: inline-block; }

  .hero { padding: calc(var(--nav-h) + 16px) 0 28px; }
  .hero-title-row2 { font-size: clamp(40px, 13vw, 68px); }
  .hero-title-row1 { font-size: clamp(11px, 3.5vw, 18px); }
  .hero-meta { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .hero-desc { font-size: 14px; margin-bottom: 20px; }
  .hero-quickjump { gap: 5px; }
  .quickjump-link { font-size: 10px; padding: 5px 11px; }

  .intro-grid { grid-template-columns: 1fr; gap: 0; }
  .intro-tags-block { display: none; }
  .container { padding: 0 16px; }

  .tier-list-top { padding: 14px 0; }
  .tier-list-container { padding: 0 16px; }
  .filter-bar { gap: 4px; }
  .filter-btn { font-size: 11px; padding: 5px 10px; }
  .tier-row { grid-template-columns: 72px 1fr; }
  .tier-label-col { padding: 14px 6px; }
  .tier-label-text { font-size: clamp(28px, 8vw, 52px); }
  .tier-row[data-tier="ss"] .tier-label-text { font-size: clamp(34px, 10vw, 60px); }
  .tier-chars { gap: 6px; padding: 12px 12px 12px 10px; }
  .char-card { width: 68px; }
  .tier-row[data-tier="ss"] .char-card { width: 78px; }

  .explain-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ─── ELEMENT / PATH ICON IMAGES ─── */
.element-icon-sm,
.path-icon-sm {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  object-fit: contain;
}
.card-element-badge img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: block;
}
.char-card.no-image .card-placeholder-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.tooltip-value img {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  object-fit: contain;
}
.filter-btn .filter-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  object-fit: contain;
  margin-right: 3px;
}
