/* ============================================
   UNDERTALE SANS FIGHTING BOT — WEBSITE CSS
   Dark pixel aesthetic, retro RPG vibes
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --border: #2a2a2a;
  --border-bright: #444;
  --text: #ffffff;
  --text-dim: #aaaaaa;
  --text-faint: #555;
  --yellow: #ffff00;
  --yellow-dim: #cccc00;
  --red: #ff4444;
  --blue: #4488ff;
  --green: #44ff88;
  --orange: #ff8844;
  --purple: #aa44ff;
  --pink: #ff44aa;
  --bone: #e8d5a3;
  --magic: #88aaff;
  --food: #ff9944;
  --weapon: #ff5544;
  --unique: #ffcc44;
  --font-pixel: 'Press Start 2P', monospace;
  --font-vt: 'VT323', monospace;
  --glow-yellow: 0 0 10px rgba(255,255,0,0.5), 0 0 20px rgba(255,255,0,0.2);
  --glow-red: 0 0 10px rgba(255,68,68,0.5), 0 0 20px rgba(255,68,68,0.2);
  --glow-blue: 0 0 10px rgba(68,136,255,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-vt);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* SCANLINES OVERLAY */
.scanlines {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
}

/* NOISE OVERLAY */
.noise {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 9998; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============ NAVBAR ============ */
.navbar {
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.9);
  border-bottom: 2px solid var(--yellow);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--yellow);
  text-shadow: var(--glow-yellow);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex; gap: 0; list-style: none; flex: 1;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s, text-shadow 0.2s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--yellow);
  text-shadow: var(--glow-yellow);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}
.nav-discord {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: #5865f2;
  text-decoration: none;
  border: 1px solid #5865f2;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-discord:hover { background: #5865f2; color: white; }
.nav-invite {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: #ff6b6b;
  text-decoration: none;
  border: 1px solid #ff6b6b;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-invite:hover { background: #ff6b6b; color: white; }

/* ============ HERO ============ */
.hero {
  min-height: 85vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--border);
}

.hero-bg-text {
  position: absolute;
  font-family: var(--font-pixel);
  font-size: clamp(3rem, 10vw, 8rem);
  color: rgba(255,255,0,0.03);
  user-select: none;
  letter-spacing: 0.1em;
  white-space: nowrap;
  animation: bgDrift 20s linear infinite;
}

@keyframes bgDrift {
  0% { transform: translateX(-5%); }
  100% { transform: translateX(5%); }
}

.hero-content { text-align: center; z-index: 1; }

.hero-heart {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1.5rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  line-height: 1.8;
  color: var(--yellow);
  text-shadow: var(--glow-yellow);
  margin-bottom: 0.5rem;
  animation: fadeInDown 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: var(--text-dim);
  text-shadow: none;
}

.hero-desc {
  font-family: var(--font-vt);
  font-size: 1.4rem;
  color: var(--text-dim);
  margin: 1.5rem auto;
  max-width: 600px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center;
  margin-top: 4rem; z-index: 1;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-box {
  text-align: center;
  border: 1px solid var(--border-bright);
  padding: 1rem 1.5rem;
  background: rgba(255,255,0,0.03);
  transition: border-color 0.2s, background 0.2s;
}
.stat-box:hover { border-color: var(--yellow); background: rgba(255,255,0,0.06); }

.stat-num {
  display: block;
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: var(--yellow);
  text-shadow: var(--glow-yellow);
}

.stat-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ============ BUTTONS ============ */
.btn {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-invite {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}
.btn-invite:hover { background: #e05555; transform: scale(1.05); }
.btn-primary {
  background: var(--yellow);
  color: #000;
  box-shadow: 4px 4px 0 rgba(255,255,0,0.3);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(255,255,0,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
}
.btn-secondary:hover { background: rgba(255,255,0,0.1); }

.btn-large { font-size: 0.65rem; padding: 1rem 2rem; }

/* ============ SECTIONS ============ */
.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: var(--yellow);
  text-shadow: var(--glow-yellow);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

/* ============ FEATURES ============ */
.features {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--yellow);
  transition: height 0.3s;
}
.feature-card:hover::before { height: 100%; }
.feature-card:hover { border-color: var(--yellow); transform: translateY(-3px); }

.feature-icon { font-size: 2rem; margin-bottom: 1rem; }

.feature-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.feature-card p { color: var(--text-dim); font-size: 1.1rem; line-height: 1.5; }

/* ============ TYPE CHART ============ */
.types-section {
  padding: 5rem 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.type-chart {
  display: flex; gap: 2rem; align-items: flex-start; justify-content: center;
  flex-wrap: wrap; margin-top: 2rem; max-width: 800px; margin-left: auto; margin-right: auto;
}

.type-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  min-width: 160px;
  background: var(--bg3);
}
.type-emoji { font-size: 2.5rem; display: block; }
.type-name { font-family: var(--font-pixel); font-size: 0.5rem; color: var(--yellow); display: block; margin: 0.5rem 0; }
.type-weak, .type-strong { display: block; font-size: 0.9rem; color: var(--text-dim); }
.type-flow { display: block; font-size: 0.9rem; margin-top: 0.5rem; color: var(--text-dim); }

.type-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.type-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg3); padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  font-size: 1.1rem;
}
.te { min-width: 100px; }
.ta { color: var(--yellow); font-family: var(--font-pixel); font-size: 0.45rem; }

/* ============ STATUS EFFECTS ============ */
.status-section {
  padding: 5rem 2rem;
  max-width: 1000px; margin: 0 auto;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem; margin-top: 2rem;
}

.status-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.2s;
}
.status-card:hover { border-color: var(--yellow); }
.se { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.status-card b { font-family: var(--font-pixel); font-size: 0.45rem; color: var(--yellow); display: block; margin-bottom: 0.5rem; }
.status-card p { color: var(--text-dim); font-size: 1rem; }

/* ============ CTA SECTION ============ */
.cta-section {
  padding: 5rem 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.cta-box {
  max-width: 600px; margin: 0 auto; text-align: center;
  border: 2px solid var(--yellow);
  padding: 3rem;
  background: rgba(255,255,0,0.02);
  box-shadow: var(--glow-yellow);
}
.cta-heart { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-box h2 {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.cta-box p { color: var(--text-dim); font-size: 1.2rem; margin-bottom: 2rem; }

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 4rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(255,255,0,0.03), transparent);
}
.page-title {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: var(--yellow);
  text-shadow: var(--glow-yellow);
  margin-bottom: 0.5rem;
}
.page-sub { color: var(--text-dim); font-size: 1.2rem; }

/* ============ CHARACTER FILTER ============ */
.char-filter {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  padding: 2rem;
  max-width: 1200px; margin: 0 auto;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

/* ============ CHARACTER CARDS ============ */
.chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem 2rem 4rem;
  max-width: 1200px; margin: 0 auto;
}

.char-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  animation: fadeInUp 0.4s ease both;
}
.char-card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.char-card.hidden { display: none; }

.char-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem; flex-wrap: wrap;
}

.char-type-badge {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}
.char-type-badge.bone { background: rgba(232,213,163,0.15); color: var(--bone); border: 1px solid var(--bone); }
.char-type-badge.magic { background: rgba(136,170,255,0.15); color: var(--magic); border: 1px solid var(--magic); }
.char-type-badge.food { background: rgba(255,153,68,0.15); color: var(--food); border: 1px solid var(--food); }
.char-type-badge.weapon { background: rgba(255,85,68,0.15); color: var(--weapon); border: 1px solid var(--weapon); }
.char-type-badge.unique { background: rgba(255,204,68,0.15); color: var(--unique); border: 1px solid var(--unique); }

.char-starter {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.2rem 0.4rem;
}

.exclusive-badge {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  color: var(--purple);
  border: 1px solid var(--purple);
  padding: 0.2rem 0.4rem;
}

.char-name {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.char-desc { color: var(--text-dim); font-size: 1rem; margin-bottom: 1rem; line-height: 1.4; }

.char-stats { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

.stat {
  display: flex; align-items: center; gap: 0.5rem;
}
.sl { font-family: var(--font-pixel); font-size: 0.4rem; color: var(--text-dim); min-width: 30px; }
.sv { font-family: var(--font-pixel); font-size: 0.4rem; color: var(--text); min-width: 30px; text-align: right; }
.stat-bar { flex: 1; height: 6px; background: var(--border); }
.stat-fill { height: 100%; background: var(--yellow); transition: width 0.5s; }
.stat-fill.atk { background: var(--red); }
.stat-fill.def { background: var(--blue); }

.char-passive {
  font-size: 0.9rem;
  color: var(--text-dim);
  border-left: 2px solid var(--purple);
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}
.passive-label {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  color: var(--purple);
  display: inline-block;
  margin-right: 0.3rem;
}

.char-moves { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.move-tag {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
}
.move-tag.bone { background: rgba(232,213,163,0.1); color: var(--bone); }
.move-tag.magic { background: rgba(136,170,255,0.1); color: var(--magic); }
.move-tag.food { background: rgba(255,153,68,0.1); color: var(--food); }
.move-tag.weapon { background: rgba(255,85,68,0.1); color: var(--weapon); }
.move-tag.unique { background: rgba(255,204,68,0.1); color: var(--unique); }

/* SPECIAL CARDS */
.shiny-card { border-color: var(--purple) !important; box-shadow: 0 0 15px rgba(170,68,255,0.2); }
.idutshane-card { border-color: var(--red) !important; box-shadow: 0 0 15px rgba(255,68,68,0.15); }
.idutshane-boss-card { border-color: var(--red) !important; box-shadow: 0 0 20px rgba(255,68,68,0.2); }

/* ============ BOSSES ============ */
.bosses-list {
  display: flex; flex-direction: column; gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1000px; margin: 0 auto;
}

.boss-card {
  display: flex; gap: 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.2s;
}
.boss-card:hover { border-color: var(--yellow); }

.boss-left {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  min-width: 80px;
}

.boss-icon { font-size: 3.5rem; }

.boss-difficulty {
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
}
.boss-difficulty.easy { background: rgba(68,255,136,0.15); color: var(--green); border: 1px solid var(--green); }
.boss-difficulty.medium { background: rgba(255,136,68,0.15); color: var(--orange); border: 1px solid var(--orange); }
.boss-difficulty.hard { background: rgba(255,68,68,0.15); color: var(--red); border: 1px solid var(--red); }

.boss-right { flex: 1; }

.boss-name {
  font-family: var(--font-pixel);
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.boss-type { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }

.boss-stats-row {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.bs {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--text-dim);
}

.boss-desc { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 1rem; line-height: 1.5; }

.boss-moves-label {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.boss-moves { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.boss-drops { border-top: 1px solid var(--border); padding-top: 1rem; }
.drops-label {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.drop-item {
  font-size: 1rem;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.2rem 0;
}
.drop-chance {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  color: var(--text-faint);
  margin-left: auto;
}

/* ============ ITEMS ============ */
.items-section, .crafting-section {
  padding: 4rem 2rem;
  max-width: 1100px; margin: 0 auto;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; margin-top: 2rem;
}

.item-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.item-card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.item-emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }
.item-name {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.item-desc { color: var(--text-dim); font-size: 0.95rem; line-height: 1.4; }

.crafting-section { border-top: 1px solid var(--border); }

.recipes-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }

.recipe-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  transition: border-color 0.2s;
}
.recipe-card:hover { border-color: var(--yellow); }

.recipe-result {
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 200px;
}
.recipe-emoji { font-size: 2rem; }
.recipe-name {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--yellow);
}

.recipe-arrow {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--text-faint);
}

.recipe-ingredients { display: flex; flex-direction: column; gap: 0.3rem; }
.ingredient {
  font-size: 1rem;
  color: var(--text-dim);
  background: var(--bg3);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
}

.recipe-desc { flex: 1; color: var(--text-dim); font-size: 1rem; min-width: 150px; }

/* ============ COMMANDS ============ */
.commands-container {
  max-width: 900px; margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: flex; flex-direction: column; gap: 2.5rem;
}

.cmd-group-title {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--yellow);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.cmd-card {
  display: flex; align-items: baseline; gap: 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}
.cmd-card:hover { border-color: var(--yellow); }

.cmd-name {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--yellow);
  min-width: 180px;
  flex-shrink: 0;
}

.cmd-desc { color: var(--text-dim); font-size: 1.05rem; }

.tip-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--yellow);
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem; color: var(--text-dim);
}
.tip-icon { font-size: 1.3rem; flex-shrink: 0; }
.tip-card b { color: var(--text); }

/* ============ CHANGELOG ============ */
.changelog-list {
  max-width: 900px; margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: flex; flex-direction: column; gap: 2rem;
}

.changelog-entry {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.2s;
}
.changelog-entry:first-child { border-color: var(--yellow); box-shadow: 0 0 15px rgba(255,255,0,0.05); }

.cl-header {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cl-version {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--yellow);
}
.cl-date {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--text-faint);
}
.cl-tag {
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  padding: 0.2rem 0.4rem;
}
.cl-tag.update { background: rgba(68,136,255,0.15); color: var(--blue); border: 1px solid var(--blue); }
.cl-tag.fix { background: rgba(255,68,68,0.15); color: var(--red); border: 1px solid var(--red); }

.cl-items { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.cl-items li {
  display: flex; align-items: baseline; gap: 0.75rem;
  font-size: 1.05rem; color: var(--text-dim);
  padding: 0.3rem 0;
}

.cl-new {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  color: var(--green);
  background: rgba(68,255,136,0.1);
  padding: 0.1rem 0.3rem;
  flex-shrink: 0;
}
.cl-fix {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  color: var(--red);
  background: rgba(255,68,68,0.1);
  padding: 0.1rem 0.3rem;
  flex-shrink: 0;
}

code {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  font-family: var(--font-pixel);
  font-size: 0.75em;
  color: var(--yellow);
}

/* ============ HIGHLIGHT ============ */
.highlight { color: var(--yellow); font-family: var(--font-pixel); font-size: 0.85em; }

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer p {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
.footer-sub { font-size: 0.35rem !important; }

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; gap: 1rem; }
  .nav-links { flex-wrap: wrap; gap: 0; }
  .nav-links a { font-size: 0.4rem; padding: 0.4rem 0.5rem; }

  .hero-stats { gap: 1rem; }
  .stat-box { padding: 0.75rem 1rem; }

  .boss-card { flex-direction: column; }
  .boss-left { flex-direction: row; }

  .recipe-card { flex-direction: column; }
  .recipe-arrow { transform: rotate(90deg); align-self: center; }

  .cmd-card { flex-direction: column; gap: 0.5rem; }
  .cmd-name { min-width: unset; }

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

/* ============ SECTION LABELS ============ */
.section-label {
  grid-column: 1 / -1;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--yellow);
  border-bottom: 1px solid var(--border-bright);
  padding-bottom: 0.5rem;
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

/* ============ CHAR CATEGORY FILTER ============ */
.char-obtain {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 0.4rem;
}

/* ============ BOSSES ============ */
.bosses-grid {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.boss-card {
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  padding: 1.75rem;
}
.boss-card.boss-hard { border-color: var(--red); }
.boss-card.boss-event { border-color: var(--purple); }
.boss-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.boss-name {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--yellow);
}
.boss-stats-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  background: var(--bg3);
  padding: 0.6rem 1rem;
}
.boss-passive {
  background: var(--bg3);
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  border-left: 3px solid var(--yellow);
  line-height: 1.5;
}
.boss-moves {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.boss-move {
  font-size: 1rem;
  padding: 0.35rem 0.5rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.boss-drops {
  font-size: 0.95rem;
  color: var(--text-dim);
  background: var(--bg3);
  padding: 0.6rem 0.75rem;
  line-height: 1.6;
}

/* ============ ITEMS PAGE ============ */
.items-section { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
.section-title { font-family: var(--font-pixel); font-size: 0.5rem; color: var(--yellow); margin: 2rem 0 1rem; }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.item-card { background: var(--bg2); border: 1px solid var(--border); padding: 1rem; text-align: center; }
.item-card.shop-item { border-color: var(--yellow-dim); }
.item-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.item-name { font-family: var(--font-pixel); font-size: 0.4rem; color: var(--yellow); margin-bottom: 0.5rem; }
.item-price { font-family: var(--font-pixel); font-size: 0.45rem; color: var(--green); margin-bottom: 0.25rem; }
.item-desc { font-size: 0.85rem; color: var(--text-dim); }
.recipes-list { display: flex; flex-direction: column; gap: 0.5rem; }
.recipe-row { display: flex; align-items: center; gap: 1rem; background: var(--bg2); padding: 0.75rem 1rem; border: 1px solid var(--border); }
.recipe-result { font-family: var(--font-pixel); font-size: 0.4rem; color: var(--yellow); min-width: 200px; }
.recipe-arrow { color: var(--text-faint); font-size: 1.2rem; }
.recipe-ingredients { color: var(--text-dim); font-size: 0.95rem; }

/* ============ CHANGELOG ============ */
.changelog-list { max-width: 900px; margin: 2rem auto; padding: 0 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
.cl-entry { background: var(--bg2); border: 1px solid var(--border); padding: 1.5rem; }
.cl-version { font-family: var(--font-pixel); font-size: 0.6rem; color: var(--yellow); margin-bottom: 1rem; }
.cl-tag { display: inline-block; font-family: var(--font-pixel); font-size: 0.35rem; padding: 0.2rem 0.5rem; margin: 0.75rem 0 0.25rem; }
.cl-tag.new { background: var(--green); color: #000; }
.cl-tag.balance { background: var(--orange); color: #000; }
.cl-tag.fix { background: var(--blue); color: #000; }
.cl-tag.event { background: var(--purple); color: #fff; }
.cl-entry ul { padding-left: 1.2rem; }
.cl-entry li { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 0.3rem; line-height: 1.5; }
.cl-entry li strong { color: var(--text); }

/* ============ COMMANDS ============ */
.commands-grid { max-width: 900px; margin: 2rem auto; padding: 0 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cmd-group { background: var(--bg2); border: 1px solid var(--border); padding: 1.25rem; }
.cmd-group-title { font-family: var(--font-pixel); font-size: 0.45rem; color: var(--yellow); margin-bottom: 1rem; }
.cmd-row { display: flex; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.cmd-row:last-child { border-bottom: none; }
.cmd { font-family: var(--font-pixel); font-size: 0.38rem; color: var(--green); white-space: nowrap; min-width: 200px; flex-shrink: 0; }
.cmd-desc { font-size: 0.95rem; color: var(--text-dim); }

/* ============ FUSION / LIMITED CARDS ============ */
.fusion-card { border-color: var(--purple) !important; }
.limited-card { border-color: var(--orange) !important; }
