:root {
  --bg-void: #0b0b10;
  --bg-surface: #13131c;
  --bg-card: rgba(255, 255, 255, 0.035);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --accent-cyan: #38bdf8;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-purple: #a855f7;
  --accent-gold: #eab308;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
}

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

html, body {
  min-height: 100%;
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle 7-Lane Vector Background Grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: calc(100vw / 7) 100%;
  pointer-events: none;
  z-index: 0;
}

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

/* Top Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

/* Actions Right Cluster (Auth, CTA, Mobile Toggle) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta {
  background: var(--accent-cyan);
  color: #0b0b10 !important;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 6px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
  transition: transform 0.1s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.nav-cta-text-full {
  display: inline;
}

.nav-cta-text-short {
  display: none;
}

/* Mobile Toggle Hamburger Button */
.nav-toggle-btn {
  display: none;
  width: 36px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-btn:hover,
.nav-toggle-btn:focus-visible {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  outline: none;
}

.nav-toggle-bar {
  display: block;
  width: 17px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  pointer-events: none;
}

/* Hamburger to X Transform */
.nav-toggle-btn.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle-btn.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle-btn.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Responsive Navigation (Option 1) */
@media (max-width: 860px) {
  .site-header {
    min-height: 54px;
    height: 54px;
  }

  .nav-container {
    height: 100%;
    padding: 0 14px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .brand-logo {
    font-size: 15px;
    letter-spacing: 0.8px;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo img {
    width: 20px;
    height: 20px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  .nav-cta-text-full {
    display: none;
  }

  .nav-cta-text-short {
    display: inline;
  }

  .nav-cta {
    padding: 6px 11px;
    font-size: 12px;
    height: 32px;
    letter-spacing: 0.5px;
  }

  #portalAuthBtn {
    height: 32px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    gap: 6px !important;
  }

  #portalAuthBtn #portalAuthText {
    max-width: 75px !important;
    font-size: 12px !important;
  }

  #portalAuthBtn .user-avatar,
  #portalAuthBtn .user-avatar-placeholder {
    width: 20px !important;
    height: 20px !important;
  }

  /* Slide-down Glass Drawer */
  .nav-links {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: rgba(11, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px 16px;
    gap: 4px;
    z-index: 99;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links .nav-link {
    padding: 11px 14px;
    font-size: 14.5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid transparent;
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
  }

  .nav-links .nav-link.active::after {
    content: "●";
    font-size: 10px;
    color: var(--accent-cyan);
    margin-left: 8px;
  }
}

@media (max-width: 400px) {
  .nav-container {
    padding: 0 8px;
    gap: 4px;
  }

  .brand-logo {
    font-size: 13.5px;
    letter-spacing: 0.5px;
    gap: 6px;
  }

  .nav-actions {
    gap: 4px;
  }

  .nav-cta {
    padding: 5px 8px;
    font-size: 11px;
  }

  #portalAuthBtn {
    padding: 4px 6px !important;
  }

  #portalAuthBtn #portalAuthText {
    max-width: 58px !important;
  }
}

@media (max-width: 340px) {
  .brand-logo span {
    font-size: 12px;
  }

  #portalAuthBtn #portalAuthText {
    display: none !important;
  }
}

/* Main Content Wrapper */
.site-main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0 64px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--accent-cyan);
}

.hero p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 580px;
}

@media (max-width: 860px) {
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero-actions {
    justify-content: center;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-cyan);
  color: #0b0b10;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.35);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  padding: 15px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Interactive Hero Preview Card */
.hero-preview-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.preview-canvas-wrap {
  width: 100%;
  height: 340px;
  background: #111116;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

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

.preview-overlay-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 11, 16, 0.85);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-family: monospace;
}

/* Section Headers */
.section-header {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Feature & Theme Cards Grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
  margin-bottom: 64px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
}

.card-tag {
  display: inline-block;
  font-size: 10.5px;
  font-family: monospace;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  width: fit-content;
}

.card h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.swatch-row {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.card-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 11px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.card-btn:hover {
  background: var(--accent-cyan);
  color: #0b0b10;
  border-color: var(--accent-cyan);
}

/* Compact World Selector (Home Page) */
.world-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 64px;
}

.world-compact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.world-compact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.world-compact-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.world-compact-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.world-compact-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.world-compact-tag {
  font-size: 11px;
  font-family: monospace;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.world-compact-btn {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-cyan);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.world-compact-card:hover .world-compact-btn {
  background: var(--accent-cyan);
  color: #0b0b10;
  border-color: var(--accent-cyan);
}

/* Leaderboard Table on Portal Pages */
.portal-lb-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 64px;
}

.portal-lb-controls {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-lb-controls select {
  background: #1b1b26;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.portal-lb-rows {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Prose / Spec Content on About Page */
.prose-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
}

.prose-section h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.prose-section h3 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 20px;
  margin-bottom: 8px;
}

.prose-section p, .prose-section li {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 10px;
}

.prose-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.prose-section code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: #ffffff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* User Profile & Avatars */
#portalAuthBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  vertical-align: middle;
  height: 34px;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#portalAuthBtn:hover {
  background: rgba(255, 255, 255, 0.12);
}

#portalAuthBtn .user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-cyan);
  display: block;
  flex-shrink: 0;
  margin: 0;
}

#portalAuthBtn .user-avatar-placeholder {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #0b0b10;
  font-weight: 900;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}

#portalAuthBtn #portalAuthText {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-cyan);
  display: block;
  flex-shrink: 0;
}

.user-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #0b0b10;
  font-weight: 900;
  flex-shrink: 0;
}

.lb-player-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.g-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  color: #111116;
  font-weight: 900;
  font-size: 10px;
}

/* ==========================================================================
   Changelog & Release Notes Timeline
   ========================================================================== */

.changelog-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.changelog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.changelog-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.changelog-filter-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.changelog-filter-btn.active {
  background: var(--accent-cyan);
  color: #0b0b10;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.changelog-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 24px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.6) 0%, rgba(56, 189, 248, 0.15) 80%, transparent 100%);
}

.changelog-entry {
  position: relative;
  padding-left: 52px;
  animation: changelogFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.changelog-node {
  position: absolute;
  top: 22px;
  left: 13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0b0b10;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  z-index: 2;
}

.changelog-entry.is-latest .changelog-node {
  border-color: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.8);
  animation: nodePulse 2s infinite ease-in-out;
}

@keyframes nodePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.9);
  }
}

.changelog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.changelog-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.changelog-version-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.changelog-version {
  font-family: monospace;
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.changelog-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.changelog-badge.badge-latest {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ade80;
}

.changelog-date {
  font-size: 13px;
  color: var(--text-muted);
}

.changelog-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.changelog-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.changelog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.changelog-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.changelog-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-items li {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.changelog-items li::before {
  content: "▹";
  position: absolute;
  left: 2px;
  color: var(--accent-cyan);
  font-size: 12px;
}

.changelog-load-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.load-more-btn:hover {
  background: var(--accent-cyan);
  color: #0b0b10;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.changelog-caught-up {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .changelog-timeline::before {
    left: 12px;
  }
  .changelog-entry {
    padding-left: 36px;
  }
  .changelog-node {
    left: 5px;
    width: 14px;
    height: 14px;
  }
  .changelog-card {
    padding: 18px 16px;
  }
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
