/* ============================================
   Fortnite Command Center — Immersive Gaming UI
   Concept: In-game UI dashboard with holographic
   card effects, neon accents, and Japanese typographic flair.
   ============================================ */

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

:root {
  /* Deep space background */
  --bg-deep: #06090f;
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --bg-card: #151e2d;
  --bg-elevated: #1c2740;
  --bg-glass: rgba(11, 17, 32, 0.75);

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.03);
  --border-glow: rgba(0, 200, 255, 0.12);

  /* Text */
  --text-primary: #f0f6fc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  /* Accents */
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.08);
  --accent-glow: rgba(0, 212, 255, 0.25);
  --accent-hover: #38bdf8;
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.08);
  --purple-glow: rgba(168, 85, 247, 0.2);
  --gold: #f59e0b;
  --gold-dim: rgba(245, 158, 11, 0.1);
  --vbucks: #00d4ff;

  /* Rarity colors — more vivid */
  --rarity-common: #9ca3af;
  --rarity-uncommon: #34d399;
  --rarity-rare: #60a5fa;
  --rarity-epic: #c084fc;
  --rarity-legendary: #fb923c;
  --rarity-mythic: #fde047;
  --rarity-exotic: #5eead4;
  --rarity-icon: #22d3ee;
  --rarity-gaming: #2dd4bf;
  --rarity-dark: #6b21a8;
  --rarity-dc: #3b82f6;
  --rarity-marvel: #ef4444;
  --rarity-star-wars: #f5f5f4;
  --rarity-shadow: #a855f7;
  --rarity-frozen: #7dd3fc;
  --rarity-lava: #f97316;
  --rarity-slurp: #2dd4bf;

  /* Typography */
  --font-display: 'Dela Gothic One', cursive;
  --font-body: 'Zen Kaku Gothic New', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Spacing & Radius */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  font-weight: 400;
  /* Subtle animated mesh gradient background */
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 212, 255, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(168, 85, 247, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 80%, rgba(0, 212, 255, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
}

/* --- Screen Reader Helpers --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -999px;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  z-index: 1000;
  font-weight: 700;
  font-family: var(--font-body);
}

.skip-link:focus {
  top: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--border-glow); }
  50% { border-color: var(--accent-glow); }
}

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

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Navigation --- */
.nav {
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), var(--purple-glow), transparent);
}

.nav-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-logo:hover { color: var(--text-primary); }

.nav-logo-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-links {
  display: flex;
  gap: 0.125rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all var(--transition);
  position: relative;
}

.nav-link-icon { font-size: 1rem; }

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

.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* --- Hamburger Menu --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-hamburger:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--accent); }

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.nav-hamburger.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Main Content --- */
.main-content {
  max-width: 1340px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  min-height: calc(100vh - 60px - 200px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border-color: transparent;
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #38bdf8);
  border-color: transparent;
  color: var(--bg-deep);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

/* --- Shop Page --- */
.shop-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.shop-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--purple), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holoShift 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.shop-nav-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* --- Shop Item Count --- */
.shop-item-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.shop-item-count strong {
  color: var(--accent);
  font-weight: 900;
  font-size: 1.1rem;
}

/* --- Countdown --- */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--accent-dim), var(--purple-dim));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  animation: borderGlow 3s ease-in-out infinite;
}

.countdown-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.countdown-timer {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-shadow: 0 0 24px var(--accent-glow), 0 0 48px rgba(0, 212, 255, 0.1);
}

/* --- Shop Summary --- */
.shop-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 0.75rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--accent-dim), var(--purple-dim));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.shop-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.03), transparent);
  animation: shimmer 4s ease-in-out infinite;
  background-size: 200% 100%;
}

.summary-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.summary-icon { display: flex; align-items: center; }

.summary-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vbucks);
  text-shadow: 0 0 16px var(--accent-glow);
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rarity-distribution {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.rarity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rarity-chip.rarity-common    { background: rgba(156,163,175,0.1); color: var(--rarity-common); }
.rarity-chip.rarity-uncommon  { background: rgba(52,211,153,0.1); color: var(--rarity-uncommon); }
.rarity-chip.rarity-rare      { background: rgba(96,165,250,0.1); color: var(--rarity-rare); }
.rarity-chip.rarity-epic      { background: rgba(192,132,252,0.1); color: var(--rarity-epic); }
.rarity-chip.rarity-legendary { background: rgba(251,146,60,0.1); color: var(--rarity-legendary); }
.rarity-chip.rarity-mythic    { background: rgba(253,224,71,0.1); color: var(--rarity-mythic); }
.rarity-chip.rarity-icon      { background: rgba(34,211,238,0.1); color: var(--rarity-icon); }
.rarity-chip.rarity-marvel    { background: rgba(239,68,68,0.1); color: var(--rarity-marvel); }
.rarity-chip.rarity-dark      { background: rgba(107,33,168,0.15); color: #c084fc; }

.rarity-chip strong { font-weight: 900; }

/* --- Shop Section --- */
.shop-section {
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.5s ease backwards;
}

.shop-section:nth-child(2) { animation-delay: 0.06s; }
.shop-section:nth-child(3) { animation-delay: 0.12s; }
.shop-section:nth-child(4) { animation-delay: 0.18s; }

.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.section-count {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* --- Shop Grid --- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1rem;
}

.shop-grid-featured {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* --- Entry Card — Holographic Style --- */
.entry-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(168, 85, 247, 0.05), rgba(0, 212, 255, 0.05));
  z-index: 0;
}

.entry-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.entry-card:hover::before { opacity: 1; }

/* Rarity glow on hover */
.entry-card.rarity-legendary:hover { box-shadow: 0 12px 40px rgba(251, 146, 60, 0.2); border-color: rgba(251, 146, 60, 0.4); }
.entry-card.rarity-epic:hover      { box-shadow: 0 12px 40px rgba(192, 132, 252, 0.2); border-color: rgba(192, 132, 252, 0.4); }
.entry-card.rarity-rare:hover      { box-shadow: 0 12px 40px rgba(96, 165, 250, 0.15); border-color: rgba(96, 165, 250, 0.4); }
.entry-card.rarity-mythic:hover    { box-shadow: 0 12px 40px rgba(253, 224, 71, 0.15); border-color: rgba(253, 224, 71, 0.4); }
.entry-card.rarity-marvel:hover    { box-shadow: 0 12px 40px rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.4); }
.entry-card.rarity-icon:hover      { box-shadow: 0 12px 40px rgba(34, 211, 238, 0.15); border-color: rgba(34, 211, 238, 0.4); }
.entry-card.rarity-dark:hover      { box-shadow: 0 12px 40px rgba(107, 33, 168, 0.3); border-color: rgba(192, 132, 252, 0.3); }
.entry-card.rarity-exotic:hover    { box-shadow: 0 12px 40px rgba(94, 234, 212, 0.15); border-color: rgba(94, 234, 212, 0.4); }
.entry-card.rarity-frozen:hover    { box-shadow: 0 12px 40px rgba(125, 211, 252, 0.15); border-color: rgba(125, 211, 252, 0.4); }
.entry-card.rarity-lava:hover      { box-shadow: 0 12px 40px rgba(249, 115, 22, 0.2); border-color: rgba(249, 115, 22, 0.4); }
.entry-card.rarity-slurp:hover     { box-shadow: 0 12px 40px rgba(45, 212, 191, 0.15); border-color: rgba(45, 212, 191, 0.4); }
.entry-card.rarity-shadow:hover    { box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.4); }

.entry-link {
  display: block;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.entry-link:hover { color: var(--text-primary); }

.entry-banner {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: var(--bg-deep);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 6px;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
}

/* Rare Return Badge */
.entry-rare-return {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 3;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px var(--purple-glow);
  animation: pulseGlow 2s ease-in-out infinite;
}

.entry-image {
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
}

.entry-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-card:hover .entry-image img {
  transform: scale(1.1) rotate(1deg);
}

.entry-info {
  padding: 0.5rem 0.75rem;
  position: relative;
  z-index: 1;
}

.entry-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-type {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entry-bundle-count {
  display: inline-block;
  font-size: 0.6rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 0.4rem;
  font-weight: 700;
}

.entry-price {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.75rem;
}

.price-vbucks {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--vbucks);
}

.vbuck-icon { width: 16px; height: 16px; }

/* --- Rarity Borders & Gradients --- */
.rarity-common    { border-bottom: 3px solid var(--rarity-common); }
.rarity-uncommon  { border-bottom: 3px solid var(--rarity-uncommon); }
.rarity-rare      { border-bottom: 3px solid var(--rarity-rare); }
.rarity-epic      { border-bottom: 3px solid var(--rarity-epic); }
.rarity-legendary { border-bottom: 3px solid var(--rarity-legendary); }
.rarity-mythic    { border-bottom: 3px solid var(--rarity-mythic); }
.rarity-exotic    { border-bottom: 3px solid var(--rarity-exotic); }
.rarity-icon      { border-bottom: 3px solid var(--rarity-icon); }
.rarity-gaming    { border-bottom: 3px solid var(--rarity-gaming); }
.rarity-dark      { border-bottom: 3px solid var(--rarity-dark); }
.rarity-dc        { border-bottom: 3px solid var(--rarity-dc); }
.rarity-marvel    { border-bottom: 3px solid var(--rarity-marvel); }
.rarity-star-wars { border-bottom: 3px solid var(--rarity-star-wars); }
.rarity-shadow    { border-bottom: 3px solid var(--rarity-shadow); }
.rarity-frozen    { border-bottom: 3px solid var(--rarity-frozen); }
.rarity-lava      { border-bottom: 3px solid var(--rarity-lava); }
.rarity-slurp     { border-bottom: 3px solid var(--rarity-slurp); }

/* Card image rarity gradients */
.entry-card.rarity-common    .entry-image { background: linear-gradient(180deg, rgba(156,163,175,0.06), transparent); }
.entry-card.rarity-uncommon  .entry-image { background: linear-gradient(180deg, rgba(52,211,153,0.08), transparent); }
.entry-card.rarity-rare      .entry-image { background: linear-gradient(180deg, rgba(96,165,250,0.08), transparent); }
.entry-card.rarity-epic      .entry-image { background: linear-gradient(180deg, rgba(192,132,252,0.08), transparent); }
.entry-card.rarity-legendary .entry-image { background: linear-gradient(180deg, rgba(251,146,60,0.1), transparent); }
.entry-card.rarity-mythic    .entry-image { background: linear-gradient(180deg, rgba(253,224,71,0.08), transparent); }
.entry-card.rarity-marvel    .entry-image { background: linear-gradient(180deg, rgba(239,68,68,0.08), transparent); }
.entry-card.rarity-icon      .entry-image { background: linear-gradient(180deg, rgba(34,211,238,0.08), transparent); }
.entry-card.rarity-dark      .entry-image { background: linear-gradient(180deg, rgba(107,33,168,0.15), transparent); }
.entry-card.rarity-exotic    .entry-image { background: linear-gradient(180deg, rgba(94,234,212,0.06), transparent); }
.entry-card.rarity-frozen    .entry-image { background: linear-gradient(180deg, rgba(125,211,252,0.06), transparent); }
.entry-card.rarity-lava      .entry-image { background: linear-gradient(180deg, rgba(249,115,22,0.1), transparent); }
.entry-card.rarity-slurp     .entry-image { background: linear-gradient(180deg, rgba(45,212,191,0.06), transparent); }
.entry-card.rarity-shadow    .entry-image { background: linear-gradient(180deg, rgba(168,85,247,0.08), transparent); }

/* --- Rarity Badge --- */
.rarity-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rarity-badge.rarity-common    { background: rgba(156,163,175,0.1); color: var(--rarity-common); }
.rarity-badge.rarity-uncommon  { background: rgba(52,211,153,0.1); color: var(--rarity-uncommon); }
.rarity-badge.rarity-rare      { background: rgba(96,165,250,0.1); color: var(--rarity-rare); }
.rarity-badge.rarity-epic      { background: rgba(192,132,252,0.1); color: var(--rarity-epic); }
.rarity-badge.rarity-legendary { background: rgba(251,146,60,0.1); color: var(--rarity-legendary); }
.rarity-badge.rarity-mythic    { background: rgba(253,224,71,0.1); color: var(--rarity-mythic); }
.rarity-badge.rarity-marvel    { background: rgba(239,68,68,0.1); color: var(--rarity-marvel); }
.rarity-badge.rarity-icon      { background: rgba(34,211,238,0.1); color: var(--rarity-icon); }
.rarity-badge.rarity-dark      { background: rgba(107,33,168,0.15); color: #c084fc; }
.rarity-badge.rarity-exotic    { background: rgba(94,234,212,0.08); color: var(--rarity-exotic); }
.rarity-badge.rarity-frozen    { background: rgba(125,211,252,0.08); color: var(--rarity-frozen); }
.rarity-badge.rarity-lava      { background: rgba(249,115,22,0.1); color: var(--rarity-lava); }
.rarity-badge.rarity-slurp     { background: rgba(45,212,191,0.08); color: var(--rarity-slurp); }
.rarity-badge.rarity-shadow    { background: rgba(168,85,247,0.1); color: var(--rarity-shadow); }

/* --- Cosmetics Index --- */
.cosmetics-page { }

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.results-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: -0.8rem 0 1.25rem;
}

.filters {
  margin-bottom: 1.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-input,
.filter-select {
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-input { min-width: 200px; flex: 1; }
.filter-input::placeholder { color: var(--text-muted); }

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 16px var(--accent-glow);
}

.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1rem;
}

.cosmetic-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: block;
  color: var(--text-primary);
  position: relative;
}

.cosmetic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
}

.cosmetic-card.rarity-legendary:hover { box-shadow: 0 8px 32px rgba(251, 146, 60, 0.15); border-color: rgba(251, 146, 60, 0.3); }
.cosmetic-card.rarity-epic:hover      { box-shadow: 0 8px 32px rgba(192, 132, 252, 0.15); border-color: rgba(192, 132, 252, 0.3); }
.cosmetic-card.rarity-rare:hover      { box-shadow: 0 8px 32px rgba(96, 165, 250, 0.15); border-color: rgba(96, 165, 250, 0.3); }
.cosmetic-card.rarity-mythic:hover    { box-shadow: 0 8px 32px rgba(253, 224, 71, 0.15); border-color: rgba(253, 224, 71, 0.3); }
.cosmetic-card.rarity-marvel:hover    { box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); }
.cosmetic-card.rarity-icon:hover      { box-shadow: 0 8px 32px rgba(34, 211, 238, 0.15); border-color: rgba(34, 211, 238, 0.3); }

.cosmetic-image {
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.01);
  position: relative;
}

.cosmetic-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cosmetic-info {
  padding: 0.5rem 0.75rem 0.75rem;
}

.cosmetic-name {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cosmetic-type {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Cosmetic Detail --- */
.cosmetic-detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.cosmetic-detail-image {
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}

/* Rarity background glow */
.cosmetic-detail-image.rarity-legendary { background: linear-gradient(135deg, rgba(251,146,60,0.06), var(--bg-card)); border-color: rgba(251,146,60,0.15); }
.cosmetic-detail-image.rarity-epic      { background: linear-gradient(135deg, rgba(192,132,252,0.06), var(--bg-card)); border-color: rgba(192,132,252,0.15); }
.cosmetic-detail-image.rarity-rare      { background: linear-gradient(135deg, rgba(96,165,250,0.06), var(--bg-card)); border-color: rgba(96,165,250,0.15); }
.cosmetic-detail-image.rarity-mythic    { background: linear-gradient(135deg, rgba(253,224,71,0.06), var(--bg-card)); border-color: rgba(253,224,71,0.15); }
.cosmetic-detail-image.rarity-marvel    { background: linear-gradient(135deg, rgba(239,68,68,0.06), var(--bg-card)); border-color: rgba(239,68,68,0.15); }
.cosmetic-detail-image.rarity-icon      { background: linear-gradient(135deg, rgba(34,211,238,0.06), var(--bg-card)); border-color: rgba(34,211,238,0.15); }

.cosmetic-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cosmetic-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.cosmetic-detail-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
}

.cosmetic-detail-type {
  color: var(--text-secondary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cosmetic-detail-desc {
  color: var(--text-secondary);
  font-style: italic;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.cosmetic-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.cosmetic-meta dt {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cosmetic-meta dd { font-weight: 500; }

/* --- Days Since Last Seen --- */
.days-since-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.days-since-badge.recent { background: rgba(52, 211, 153, 0.1); color: var(--rarity-uncommon); border-color: rgba(52, 211, 153, 0.15); }
.days-since-badge.moderate { background: var(--accent-dim); color: var(--accent); border-color: var(--border-glow); }
.days-since-badge.rare-appearance { background: rgba(251, 146, 60, 0.1); color: var(--rarity-legendary); border-color: rgba(251, 146, 60, 0.15); }
.days-since-badge.very-rare { background: rgba(192, 132, 252, 0.1); color: var(--rarity-epic); border-color: rgba(192, 132, 252, 0.15); }

/* --- Shop History --- */
.shop-history-section {
  animation: fadeInUp 0.5s ease 0.1s backwards;
}

.appearance-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  text-align: center;
  flex: 1;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0.5;
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.appearance-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.appearance-list li {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.appearance-list li:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.appearance-link { font-size: 0.85rem; }

/* --- Related Items --- */
.related-items-section {
  margin-top: 2.5rem;
  animation: fadeInUp 0.5s ease 0.15s backwards;
}

.related-items-section .cosmetics-grid {
  margin-top: 1.25rem;
}

/* --- History Page --- */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  display: block;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.history-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.history-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  color: var(--text-primary);
}

.history-card:hover::before { opacity: 1; }

.history-day {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-glow);
}

.history-month {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.history-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* --- Quick Links --- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quick-link-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-primary);
  transition: all var(--transition);
}

.quick-link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text-primary);
  box-shadow: 0 0 16px var(--accent-glow);
}

.quick-link-title {
  font-weight: 700;
  font-size: 0.85rem;
}

.quick-link-text {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* --- Social Share --- */
.social-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  justify-content: center;
}

.social-share-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-share-buttons { display: flex; gap: 0.5rem; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.share-btn svg { flex-shrink: 0; }

.share-btn-x {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.share-btn-x:hover {
  background: #000;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.share-btn-line {
  background: rgba(6, 199, 85, 0.06);
  color: #06C755;
}

.share-btn-line:hover {
  background: #06C755;
  color: #fff;
  border-color: #06C755;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.2);
}

/* --- SEO Copy --- */
.seo-copy {
  margin-top: 2rem;
  padding: 1.25rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.seo-copy h2 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.seo-copy p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.8;
}

/* --- Pagination --- */
.pagination-nav {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.pagy nav.pagy { display: flex; gap: 0.3rem; }

.pagy nav.pagy a,
.pagy nav.pagy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.pagy nav.pagy a:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.pagy nav.pagy a[aria-current="page"],
.pagy nav.pagy .current {
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border-color: transparent;
  color: var(--bg-deep);
  font-weight: 700;
  box-shadow: 0 0 16px var(--accent-glow);
}

.pagy nav.pagy .gap { border: none; background: none; }

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h2 { margin-bottom: 0.5rem; color: var(--text-secondary); }
.empty-state p { color: var(--text-muted); }

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

/* --- Ad Slot --- */
.ad-slot {
  margin: 1.75rem 0;
  padding: 1rem;
  min-height: 90px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- SAC CTA --- */
.sac-cta {
  background: linear-gradient(135deg, var(--accent-dim), var(--purple-dim));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.sac-cta p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* --- SAC Banner --- */
.sac-banner {
  margin: 2.5rem 0;
  background: linear-gradient(135deg, var(--accent-dim), var(--purple-dim));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.sac-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.03), transparent);
  animation: shimmer 4s ease-in-out infinite;
  background-size: 200% 100%;
}

.sac-banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.sac-banner-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.sac-banner-text p { font-size: 0.82rem; color: var(--text-secondary); }

.sac-banner-code { text-align: center; }

.sac-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.sac-code-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-secondary);
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 0.6rem 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 16px var(--accent-glow);
}

.sac-how { font-size: 0.7rem; color: var(--text-muted); }

/* --- V-Bucks Affiliate --- */
.vbucks-affiliate {
  margin: 2.5rem 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.vbucks-affiliate-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.vbucks-affiliate-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.vbucks-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.vbucks-card-link { text-decoration: none; color: var(--text-primary); }

.vbucks-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.vbucks-card-link:hover .vbucks-card {
  border-color: var(--vbucks);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}

.vbucks-card-icon { width: 32px; height: 32px; }

.vbucks-card-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--vbucks);
}

.vbucks-card-action { font-size: 0.7rem; color: var(--accent); font-weight: 500; }
.affiliate-disclosure { margin-top: 0.75rem; font-size: 0.65rem; color: var(--text-muted); }

/* --- Scroll to Top Button --- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: var(--bg-deep);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 90;
  pointer-events: none;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2.5rem 0;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), var(--purple-glow), transparent);
}

.footer-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.footer-section p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7; }

.footer-disclaimer { margin-top: 0.5rem; font-size: 0.7rem !important; color: var(--text-muted) !important; }

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  max-width: 1340px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-secondary); }

/* --- Breadcrumbs --- */
.breadcrumb {
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-separator { color: var(--text-muted); opacity: 0.4; }
.breadcrumb-item span[aria-current] { color: var(--text-secondary); }

/* --- Ranking Page --- */
.ranking-section {
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.5s ease backwards;
}

.ranking-section:nth-child(2) { animation-delay: 0.06s; }
.ranking-section:nth-child(3) { animation-delay: 0.12s; }
.ranking-section:nth-child(4) { animation-delay: 0.18s; }

.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
  line-height: 1;
  padding: 0 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #000;
  font-size: 1rem;
  min-width: 34px;
  height: 34px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.rank-2 {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #000;
  font-size: 0.95rem;
  min-width: 32px;
  height: 32px;
}

.rank-3 {
  background: linear-gradient(135deg, #d97706, #92400e);
  color: #fff;
  font-size: 0.95rem;
  min-width: 32px;
  height: 32px;
}

.rank-badge:not(.rank-1):not(.rank-2):not(.rank-3):not(.rank-rare):not(.rank-new) {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.rank-rare {
  background: linear-gradient(135deg, var(--rarity-epic), #7c3aed);
  color: #fff;
  box-shadow: 0 0 16px var(--purple-glow);
}

.rank-new {
  background: linear-gradient(135deg, var(--rarity-uncommon), #059669);
  color: #fff;
}

.rank-stat {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.rank-stat-rare { color: var(--rarity-epic); }
.rank-stat-new { color: var(--rarity-uncommon); }

/* --- Sets Page --- */
.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.set-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.set-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.set-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  color: var(--text-primary);
}

.set-card:hover::before { opacity: 1; }

.set-card-name { font-size: 0.95rem; font-weight: 700; }
.set-card-count { font-size: 0.75rem; color: var(--text-muted); }

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: rgba(0, 212, 255, 0.25);
  color: var(--text-primary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .shop-title { font-size: 1.6rem; }
  .page-title { font-size: 1.5rem; }

  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.75rem;
  }

  .shop-grid-featured {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  }

  .cosmetics-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  }

  .cosmetic-detail-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cosmetic-detail-name { font-size: 1.5rem; }

  .cosmetic-detail-image {
    max-width: 340px;
    margin: 0 auto;
  }

  .filter-form { flex-direction: column; align-items: stretch; }
  .filter-input { min-width: 100%; }

  .appearance-stats { flex-direction: column; gap: 0.75rem; }

  .history-grid {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  }

  .nav-inner { height: 52px; }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }

  .nav-link { padding: 0.85rem 1rem; font-size: 0.9rem; border-radius: var(--radius); }
  .nav-link-icon { font-size: 1.1rem; }

  .nav-link.active::after { display: none; }

  .sac-banner-inner { flex-direction: column; text-align: center; }
  .scroll-top-btn { bottom: 1.5rem; right: 1.5rem; width: 42px; height: 42px; }
  .countdown { padding: 0.6rem 1rem; }
  .countdown-timer { font-size: 1.25rem; }

  .shop-summary { flex-direction: column; gap: 0.75rem; padding: 1rem; }
  .summary-value { font-size: 1.3rem; }
  .rarity-distribution { justify-content: center; }
}

@media (max-width: 480px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .cosmetics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .main-content { padding: 1.25rem 0.75rem; }
  .entry-name { font-size: 0.72rem; }
  .entry-type { font-size: 0.6rem; }
  .cosmetic-name { font-size: 0.68rem; }
  .page-title { font-size: 1.25rem; }

  .history-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .history-card { padding: 1.25rem 0.75rem; }
  .history-day { font-size: 2rem; }

  .social-share { flex-direction: column; gap: 0.5rem; }
  .share-btn { padding: 0.4rem 0.85rem; font-size: 0.7rem; }

  .sets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .set-card { padding: 1rem; }
  .set-card-name { font-size: 0.82rem; }
}
