/* ===== Custom Properties (shared with wt-progress) ===== */
:root {
  --bg-primary: #0D0F1A;
  --bg-secondary: #161929;
  --card-bg: rgba(255,255,255,0.035);
  --card-border: rgba(255,255,255,0.08);
  --card-radius: 12px;
  --red: #C62828;
  --pink: #E53935;
  --gold: #F5A623;
  --green: #22c55e;
  --warning: #f59e0b;
  --text-primary: #f1f5f9;
  --text-secondary: #e2e8f0;
  --text-muted: #6B7194;
  --text-dim: #4A5068;
  --indigo: #6366f1;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  min-height: 100vh;
  color-scheme: dark;
}

::selection { background: rgba(229,57,53,0.2); }

/* ===== Focus ===== */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
button:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(229,57,53,0.2);
}
input:focus-visible { outline: none; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes subtleGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.1); }
  50%      { box-shadow: 0 0 30px rgba(99, 102, 241, 0.2); }
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3)); }
  50%      { filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.5)); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.8; }
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-25%); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.latest-banner      { animation: subtleGlow 3s ease-in-out infinite; }
.logo-glow          { animation: logoGlow 4s ease-in-out infinite; }
.pulse-glow         { animation: pulse 2s ease-in-out infinite; }
.animate-bounce     { animation: bounce 1s infinite; }

/* Staggered page entrance */
.hero-section    { animation: fadeInUp 0.4s ease both; }
.filter-bar      { animation: fadeInUp 0.4s ease 0.1s both; }
.class-section   { animation: fadeInUp 0.4s ease 0.2s both; }
.class-section:nth-child(2) { animation-delay: 0.3s; }
.class-section:nth-child(3) { animation-delay: 0.4s; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.2); }

/* ===== Image Placeholder ===== */
.img-placeholder {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 48px 16px 48px;
}

/* Bottom fade transition from hero into filter bar */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
  z-index: 5;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 70%);
}

.hero-bg-grid-inner {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--indigo) 1px, transparent 1px),
    linear-gradient(90deg, var(--indigo) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
}

/* Soft radial glow behind hero logo */
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-logo-wrap .hero-logo {
  position: relative;
  z-index: 1;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
}

/* Season Banner */
.season-banner {
  max-width: 896px;
  margin: 0 auto 48px;
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, var(--card-bg) 50%, rgba(229,57,53,0.04) 100%);
  border: 1px solid var(--indigo);
  border-radius: var(--card-radius);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.season-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.08);
}

.season-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.season-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.season-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  letter-spacing: -0.3px;
}

.season-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
  opacity: 0.85;
}

.live-badge {
  padding: 8px 16px 8px 28px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  border: 1px solid rgba(99,102,241,0.25);
  letter-spacing: 0.5px;
}

.live-badge::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #818cf8;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(129,140,248,0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(129,140,248,0); }
}

/* Top 1 by Class */
.top-weapons-section {
  max-width: 1280px;
  margin: 0 auto 32px;
}

.top-weapons-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Decorative side lines flanking the title */
.top-weapons-title::before,
.top-weapons-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

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

.top-weapon-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Class-colored subtle background tint on top weapon cards */
.top-weapon-card:nth-child(1) { background: linear-gradient(135deg, rgba(34,211,238,0.025) 0%, var(--card-bg) 50%); }
.top-weapon-card:nth-child(2) { background: linear-gradient(135deg, rgba(167,139,250,0.025) 0%, var(--card-bg) 50%); }
.top-weapon-card:nth-child(3) { background: linear-gradient(135deg, rgba(251,146,60,0.025) 0%, var(--card-bg) 50%); }

.top-weapon-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.25);
}

/* Class-matched hover glow for top weapon cards */
.top-weapon-card:nth-child(1):hover {
  box-shadow: 0 8px 32px rgba(34,211,238,0.12), 0 0 0 1px rgba(34,211,238,0.15);
  border-color: rgba(34,211,238,0.3);
}
.top-weapon-card:nth-child(2):hover {
  box-shadow: 0 8px 32px rgba(167,139,250,0.12), 0 0 0 1px rgba(167,139,250,0.15);
  border-color: rgba(167,139,250,0.3);
}
.top-weapon-card:nth-child(3):hover {
  box-shadow: 0 8px 32px rgba(251,146,60,0.12), 0 0 0 1px rgba(251,146,60,0.15);
  border-color: rgba(251,146,60,0.3);
}

.top-weapon-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.class-rank-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 12px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.class-rank-badge.light  { color: #22d3ee; background: rgba(34,211,238,0.15); border: 1px solid rgba(34,211,238,0.12); }
.class-rank-badge.medium { color: #a78bfa; background: rgba(167,139,250,0.15); border: 1px solid rgba(167,139,250,0.12); }
.class-rank-badge.heavy  { color: #fb923c; background: rgba(251,146,60,0.15); border: 1px solid rgba(251,146,60,0.12); }

/* Class-colored left accent on top weapon cards */
.top-weapon-card:nth-child(1) { border-left: 2px solid rgba(34,211,238,0.3); }
.top-weapon-card:nth-child(2) { border-left: 2px solid rgba(167,139,250,0.3); }
.top-weapon-card:nth-child(3) { border-left: 2px solid rgba(251,146,60,0.3); }

.top-weapon-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  transition: transform 0.3s ease;
  outline: 1px solid rgba(255,255,255,0.06);
  outline-offset: -1px;
}

.top-weapon-card:hover .top-weapon-img {
  transform: scale(1.06);
}

.top-weapon-info {
  flex: 1;
  min-width: 0;
}

.top-weapon-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

/* Scroll Indicator */
.scroll-indicator {
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  margin: 0 auto;
  display: block;
  color: var(--text-muted);
}

/* ===== Tier & Class Badges ===== */
.tier-badge, .class-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tier-badge {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.tier-s { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid rgba(34,197,94,0.2); transition: box-shadow 0.2s ease; }
.tier-a { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); transition: box-shadow 0.2s ease; }
.tier-b { background: rgba(234,179,8,0.15);  color: #eab308; border: 1px solid rgba(234,179,8,0.15); transition: box-shadow 0.2s ease; }
.tier-c { background: rgba(249,115,22,0.15); color: #f97316; border: 1px solid rgba(249,115,22,0.12); transition: box-shadow 0.2s ease; }
.tier-d { background: rgba(239,68,68,0.15);  color: #ef4444; border: 1px solid rgba(239,68,68,0.12); transition: box-shadow 0.2s ease; }
.tier-e { background: rgba(107,114,128,0.15); color: #6b7280; border: 1px solid rgba(107,114,128,0.1); }
.tier-nr { background: rgba(75,85,99,0.15);  color: #9ca3af; border: 1px solid rgba(75,85,99,0.1); }

/* Tier badge hover glow matching tier color */
.weapon-card:hover .tier-s { box-shadow: 0 0 8px rgba(34,197,94,0.2); }
.weapon-card:hover .tier-a { box-shadow: 0 0 8px rgba(59,130,246,0.15); }
.weapon-card:hover .tier-b { box-shadow: 0 0 6px rgba(234,179,8,0.12); }

.class-light  { background: rgba(34,211,238,0.15); color: #22d3ee; text-transform: uppercase; border: 1px solid rgba(34,211,238,0.15); }
.class-medium { background: rgba(167,139,250,0.15); color: #a78bfa; text-transform: uppercase; border: 1px solid rgba(167,139,250,0.15); }
.class-heavy  { background: rgba(251,146,60,0.15); color: #fb923c; text-transform: uppercase; border: 1px solid rgba(251,146,60,0.15); }

/* ===== Sticky Filter Bar ===== */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(13,15,26,0.97) 0%, rgba(13,15,26,0.92) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.filter-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.06) 50%, transparent 90%) 1;
}

.filter-row-bottom {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* Filter buttons */
.type-filter, .class-filter {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.type-filter:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.15); }
.type-filter:active { transform: scale(0.97); }
.type-filter.active {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}

/* Active filter bottom accent line */
.type-filter.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  border-radius: 1px;
}

.class-filter:hover { color: var(--indigo); border-color: var(--indigo); }
.class-filter:active { transform: scale(0.97); }
.class-filter.active {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: var(--indigo);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

/* Class-specific active filter color overrides */
.class-filter[onclick*="'light'"].active {
  background: rgba(34,211,238,0.15);
  color: #22d3ee;
  border-color: rgba(34,211,238,0.4);
}
.class-filter[onclick*="'medium'"].active {
  background: rgba(167,139,250,0.15);
  color: #a78bfa;
  border-color: rgba(167,139,250,0.4);
}
.class-filter[onclick*="'heavy'"].active {
  background: rgba(251,146,60,0.15);
  color: #fb923c;
  border-color: rgba(251,146,60,0.4);
}

/* Class select (mobile) */
.class-select {
  width: 100%;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.class-select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  outline: none;
}

.class-select option { background: #1a1a1a; color: #fff; }

/* Class filter wrappers */
.class-filter-wrap { width: auto; }
.class-desktop-filters { display: flex; gap: 8px; }

/* Search */
.search-wrap {
  position: relative;
  width: 256px;
}

.search-input {
  width: 100%;
  padding: 8px 40px 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder { color: var(--text-dim); transition: color 0.2s ease; }
.search-input:focus::placeholder { color: var(--text-muted); }

.search-input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  outline: none;
  background: rgba(255,255,255,0.05);
  border-bottom-color: #818cf8;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Search icon lifts when input is focused */
.search-input:focus ~ .search-icon {
  color: var(--indigo);
  transform: translateY(-50%) scale(1.1);
}

/* ===== Main Content ===== */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px;
}

/* No Results */
.no-results {
  display: none;
  text-align: center;
  padding: 80px 24px;
  background: rgba(255,255,255,0.015);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255,255,255,0.04);
}

.no-results.visible {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

.no-results svg {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: var(--text-dim);
  opacity: 0.6;
}

.no-results h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.no-results p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Class Sections ===== */
.class-section {
  margin-bottom: 64px;
}

.class-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px 16px 16px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 80%, transparent 100%) 1;
  border-radius: 8px 8px 0 0;
  transition: background 0.3s ease;
}

/* Subtle class-colored background wash on section headers */
[data-class="light"] .class-section-header  { background: linear-gradient(90deg, rgba(34,211,238,0.03) 0%, transparent 60%); }
[data-class="medium"] .class-section-header { background: linear-gradient(90deg, rgba(167,139,250,0.03) 0%, transparent 60%); }
[data-class="heavy"] .class-section-header  { background: linear-gradient(90deg, rgba(251,146,60,0.03) 0%, transparent 60%); }

.class-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-section-header:hover .class-icon {
  transform: scale(1.08);
}

.class-section-header:hover .class-icon.light {
  box-shadow: 0 0 12px rgba(34,211,238,0.2);
}

.class-section-header:hover .class-icon.medium {
  box-shadow: 0 0 12px rgba(167,139,250,0.2);
}

.class-section-header:hover .class-icon.heavy {
  box-shadow: 0 0 12px rgba(251,146,60,0.2);
}

.class-icon.light  { background: rgba(34,211,238,0.2); border: 2px solid #22d3ee; color: #22d3ee; }
.class-icon.medium { background: rgba(167,139,250,0.2); border: 2px solid #a78bfa; color: #a78bfa; }
.class-icon.heavy  { background: rgba(251,146,60,0.2); border: 2px solid #fb923c; color: #fb923c; }

.class-section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

/* Class-colored text glow on section titles */
[data-class="light"] .class-section-title  { text-shadow: 0 0 20px rgba(34,211,238,0.1); }
[data-class="medium"] .class-section-title { text-shadow: 0 0 20px rgba(167,139,250,0.1); }
[data-class="heavy"] .class-section-title  { text-shadow: 0 0 20px rgba(251,146,60,0.1); }

.class-section-count {
  color: var(--text-dim);
  font-size: 13px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

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

/* ===== Weapon Cards ===== */
.weapon-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
}

.weapon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* S-tier premium card background */
.weapon-card[data-tier="S"] {
  background: linear-gradient(135deg, rgba(34,197,94,0.03) 0%, var(--card-bg) 40%);
}

/* Tier accent — top border color conveys power level at a glance */
.weapon-card[data-tier="S"] { border-top: 2px solid rgba(34,197,94,0.5); }
.weapon-card[data-tier="A"] { border-top: 2px solid rgba(59,130,246,0.4); }
.weapon-card[data-tier="B"] { border-top: 2px solid rgba(234,179,8,0.25); }
.weapon-card[data-tier="C"] { border-top: 2px solid rgba(249,115,22,0.2); }
.weapon-card[data-tier="D"] { border-top: 2px solid rgba(239,68,68,0.18); }

/* Tier-matched hover glow — S & A feel premium */
.weapon-card[data-tier="S"]:hover {
  box-shadow: 0 8px 32px rgba(34,197,94,0.15), 0 0 0 1px rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.2);
}
.weapon-card[data-tier="A"]:hover {
  box-shadow: 0 8px 32px rgba(59,130,246,0.12), 0 0 0 1px rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.18);
}
.weapon-card[data-tier="B"]:hover {
  border-color: rgba(234,179,8,0.15);
}

.weapon-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.weapon-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  outline: 1px solid rgba(255,255,255,0.04);
  outline-offset: -1px;
}

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

/* Tier-matched image glow on hover */
.weapon-card[data-tier="S"]:hover .weapon-img { box-shadow: 0 4px 16px rgba(34,197,94,0.15); }
.weapon-card[data-tier="A"]:hover .weapon-img { box-shadow: 0 4px 16px rgba(59,130,246,0.12); }

.weapon-info { flex: 1; }

.weapon-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.weapon-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

/* Status badges */
.status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 9999px;
}

.status-badge.new-s10 {
  background: rgba(99,102,241,0.3);
  color: #c7d2fe;
  border: 1px solid rgba(99,102,241,0.3);
  animation: newBadgePulse 4s ease-in-out infinite;
}

@keyframes newBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
  50%      { box-shadow: 0 0 8px rgba(99,102,241,0.2); }
}

.status-badge.hot {
  background: linear-gradient(135deg, rgba(239,68,68,0.35), rgba(249,115,22,0.3));
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.2);
  animation: hotPulse 3s ease-in-out infinite;
}

@keyframes hotPulse {
  0%, 100% { border-color: rgba(239,68,68,0.2); }
  50%      { border-color: rgba(249,115,22,0.4); }
}

/* Patch Note Badge */
.patch-note-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.patch-note-badge:hover {
  background: rgba(99, 102, 241, 0.4);
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(99,102,241,0.25);
}
.patch-note-badge[data-patch-note=""] { display: none; }

/* CSS tooltip for patch notes */
.patch-note-badge::after {
  content: attr(data-patch-note);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 280px;
  padding: 12px 14px;
  background: rgba(13,15,26,0.97);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.patch-note-badge:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Raise card z-index on badge hover so tooltip clears neighboring cards */
.weapon-card:has(.patch-note-badge:hover),
.top-weapon-card:has(.patch-note-badge:hover) {
  z-index: 60;
}

/* Weapon cards: badge is inline next to tier/class badges */
.weapon-badges .patch-note-badge {
  position: relative;
  right: auto;
  bottom: auto;
  width: 20px;
  height: 20px;
  font-size: 11px;
}

/* Weapon card badge tooltip drops DOWN from inline position */
.weapon-badges .patch-note-badge::after {
  bottom: auto;
  top: calc(100% + 8px);
  right: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}
.weapon-badges .patch-note-badge:hover::after {
  transform: translateX(-50%) translateY(0);
}

/* Top weapon cards: tooltip appears above, needs to clear the weapon image */
.top-weapon-card {
  position: relative;
}
.top-weapon-card .patch-note-badge::after {
  right: 0;
}

/* Weapon Stats Grid */
.weapon-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

.weapon-stats > div {
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  padding: 8px 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
  border-left: 2px solid rgba(255,255,255,0.03);
}

.weapon-stats > div:hover {
  background: rgba(255,255,255,0.05);
  border-left-color: rgba(255,255,255,0.1);
}

.weapon-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.weapon-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.weapon-stats > div:hover .weapon-stat-value { color: #fff; }
.weapon-stats > div:hover .weapon-stat-label { color: var(--text-muted); }

.weapon-stat-value.mono {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Sentiment */
.sentiment-section {
  padding-top: 12px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%) 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sentiment-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

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

.sentiment-track {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.sentiment-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 6px rgba(255,255,255,0.08);
}

/* Sentiment bar expands on card hover for emphasis */
.weapon-card:hover .sentiment-track {
  height: 12px;
  transition: height 0.2s ease;
}

.sentiment-track {
  transition: height 0.2s ease;
}

.sentiment-fill.high   { background: linear-gradient(90deg, #16a34a, #22c55e); }
.sentiment-fill.medium { background: linear-gradient(90deg, #d97706, #f59e0b); }
.sentiment-fill.low    { background: linear-gradient(90deg, #dc2626, #ef4444); }

.sentiment-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 32px;
  text-align: right;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Color-match sentiment percentage to bar level */
.sentiment-row:has(.sentiment-fill.high) .sentiment-pct { color: #4ade80; }
.sentiment-row:has(.sentiment-fill.medium) .sentiment-pct { color: #fbbf24; }
.sentiment-row:has(.sentiment-fill.low) .sentiment-pct { color: #f87171; }

/* Community Take */
.community-take {
  margin-top: 10px;
  padding: 0 28px 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid rgba(255,255,255,0.06);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.weapon-card:hover .community-take {
  color: var(--text-secondary);
  border-left-color: rgba(255,255,255,0.12);
}

/* ===== Footer (matches wt-progress .page-footer) ===== */
.page-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  color: #777;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  margin-top: 3rem;
  background: linear-gradient(180deg, rgba(13, 15, 26, 0.6), rgba(11, 13, 22, 0.85));
  position: relative;
}

.page-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.2), transparent);
}

.page-footer p { margin: 0; }

.page-footer a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.page-footer a:hover {
  color: #FFD054;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-disclaimer {
  color: #444;
  font-size: 0.72rem;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.footer-tip {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: #888;
}

.footer-tip a {
  color: #F5A623;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.footer-tip a:hover {
  color: #FFD054;
}

.page-footer .footer-meta-note {
  color: var(--text-dim);
  font-size: 0.72rem;
  max-width: 480px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.footer-links a {
  color: #C8CCD8;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.footer-links a:hover {
  color: #F5A623;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a.feedback { color: #F5A623; }
.footer-links a.feedback:hover { color: #FFD054; }
.footer-links a.feedback::after { background: #F5A623; }

/* ===== Vote Buttons ===== */
.vote-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
}

.vote-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  color: var(--text-dim);
}

.vote-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.vote-btn:hover .vote-icon {
  transform: scale(1.15);
}

.vote-btn:active {
  transform: scale(0.92);
}

/* Upvote states */
.vote-up:hover {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.25);
  color: rgba(34,197,94,0.8);
}

.vote-up.active {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.3);
  box-shadow: 0 0 8px rgba(34,197,94,0.2);
  color: #22c55e;
}

/* Downvote states */
.vote-down:hover {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.25);
  color: rgba(239,68,68,0.8);
}

.vote-down.active {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  box-shadow: 0 0 8px rgba(239,68,68,0.2);
  color: #ef4444;
}

/* Community Favorites vote label */
.community-votes-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  font-style: italic;
}

/* ===== Utilities ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .weapons-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-section { padding: 32px 14px; min-height: auto; max-height: none; }
  .hero-logo { max-width: 240px; }
  .season-banner { padding: 18px; margin-bottom: 32px; }
  .season-title { font-size: 24px; }
  .top-weapons-grid { grid-template-columns: 1fr; }
  .filter-bar-inner { padding: 10px 14px; }
  .filter-row-bottom { flex-direction: column; }
  .class-filter-wrap { width: 100%; }
  .class-desktop-filters { display: none; }
  .class-select { display: block; min-height: 44px; }
  .search-wrap { width: 100%; }
  .search-input { min-height: 44px; }
  .type-filter { min-height: 44px; }
  .main-content { padding: 32px 14px; }
  .weapons-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .class-section-title { font-size: 24px; }
  .class-section { margin-bottom: 48px; }
  .weapon-card { padding: 16px; }
  .weapon-img { width: 72px; height: 72px; }
  .top-weapon-card { padding: 16px; }
  .top-weapon-inner { gap: 14px; }
  .top-weapon-img { width: 64px; height: 64px; border-radius: 6px; }
  .top-weapon-name { font-size: 16px; }
  .top-weapon-card:hover { transform: translateY(-1px) scale(1.01); }
  .page-footer { font-size: 0.8rem; padding: 1.5rem 0.75rem; }
  .footer-links { gap: 1.25rem; }
}

@media (min-width: 769px) {
  .class-select { display: none; }
}

@media (max-width: 480px) {
  .hero-section { padding: 24px 10px; min-height: auto; max-height: none; }
  .hero-logo { max-width: 200px; }
  .season-banner { padding: 14px; }
  .season-title { font-size: 20px; }
  .weapons-grid { grid-template-columns: 1fr; }
  .filter-row { gap: 6px; }
  .type-filter, .class-filter { padding: 6px 12px; font-size: 13px; }
  .weapon-card { padding: 14px; }
  .weapon-img { width: 64px; height: 64px; }
  .weapon-stats { grid-template-columns: 1fr 1fr; gap: 4px; }
  .weapon-stats > div { padding: 6px 8px; }
  .weapon-stat-value { font-size: 14px; }
  .class-icon { width: 40px; height: 40px; font-size: 16px; }
  .class-section-title { font-size: 22px; }
  .scroll-indicator { display: none; }
  .top-weapons-grid { gap: 12px; }
  .weapon-card-top { gap: 12px; padding-bottom: 12px; margin-bottom: 12px; }
  .weapon-name { font-size: 16px; }
  .status-badge { font-size: 11px; padding: 3px 6px; }
  .weapon-badges { gap: 6px; }
  .tier-badge, .class-badge { font-size: 11px; padding: 3px 6px; }
  .patch-note-badge::after { width: 220px; font-size: 11px; padding: 10px 12px; }
  .community-take { font-size: 11px; margin-top: 8px; padding-right: 24px; }
  .vote-btn { min-width: 36px; min-height: 36px; width: 36px; height: 36px; }
  .vote-icon { width: 16px; height: 16px; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
