/* Top 100 stones — matches legacy stones/encyclopedia.html */

.rank-hero {
  background: linear-gradient(160deg, #1a1228 0%, #2d1b69 55%, #1a1228 100%);
  padding: 3.5rem 1.5rem 2.75rem;
  text-align: center;
  color: white;
}
.rank-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.rank-crumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.85rem;
}
.rank-crumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.rank-crumb a:hover {
  color: rgba(255, 255, 255, 0.85);
}
.rank-hero h1 {
  font-family: "Noto Serif Thai", "Playfair Display", serif;
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ece4fa 0%, #ddd0f7 42%, #e8cf85 108%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}
.rank-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.jump-nav {
  background: white;
  border-bottom: 1px solid #f0e8ff;
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.jump-btn {
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid #e9e0f8;
  background: white;
  color: #6b5e8a;
  transition: all 0.2s;
  font-family: Sarabun, sans-serif;
  text-decoration: none;
  display: inline-block;
}
.jump-btn:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: white;
}

.rank-list-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #faf8f4;
}
.rank-band-header {
  background: linear-gradient(90deg, #f3e8c9, #faf8f4);
  border-radius: 0.6rem;
  padding: 0.6rem 1.25rem;
  margin: 2.25rem 0 1.25rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #96772e;
  font-size: 1.05rem;
}
.rank-band-header:first-child {
  margin-top: 0;
}
.rank-card {
  display: flex;
  gap: 1.1rem;
  background: white;
  border: 1px solid #ede4f9;
  border-radius: 1rem;
  padding: 1.1rem;
  margin-bottom: 1rem;
  scroll-margin-top: 130px;
}
.rank-card.top10 {
  border: 2px solid #c9a84c;
  background: linear-gradient(135deg, #fffdf5, #fef9e7);
}
.rank-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f3effa;
  color: #7c3aed;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top10 .rank-num {
  background: linear-gradient(135deg, #c9a84c, #e8cd82);
  color: #1a1228;
  font-size: 1.35rem;
}
.rank-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 0.65rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.rank-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.rank-body {
  flex: 1;
  min-width: 0;
}
.rank-name {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}
.rank-th {
  font-weight: 700;
  color: #1a1228;
}
.rank-sep {
  color: #c4b5e0;
}
.rank-en {
  font-size: 0.82rem;
  color: #9b89bb;
  font-weight: 400;
}
.rank-desc {
  font-size: 0.85rem;
  color: #5a4e72;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.rank-belief {
  font-size: 0.85rem;
  color: #6b5e8a;
  line-height: 1.7;
  margin-bottom: 0.55rem;
}
.rank-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.rank-tag {
  background: #f3effa;
  color: #7c3aed;
  border: 1px solid #e0d4f7;
  border-radius: 2rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
}
.rank-more {
  font-size: 0.8rem;
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
}
.rank-more:hover {
  text-decoration: underline;
}

.bg-purple { background: linear-gradient(135deg, #ede9fe, #c4b5fd); }
.bg-green { background: linear-gradient(135deg, #d1fae5, #6ee7b7); }
.bg-blue { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.bg-pink { background: linear-gradient(135deg, #fce7f3, #f9a8d4); }
.bg-yellow { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.bg-red { background: linear-gradient(135deg, #fee2e2, #fca5a5); }
.bg-black { background: linear-gradient(135deg, #1f2937, #374151); }
.bg-white { background: linear-gradient(135deg, #f8fafc, #e2e8f0); }
.bg-orange { background: linear-gradient(135deg, #ffedd5, #fdba74); }
.bg-brown { background: linear-gradient(135deg, #fef3c7, #b45309); }
.bg-gold { background: linear-gradient(135deg, #fef3c7, #c9a84c); }
.bg-multi { background: linear-gradient(135deg, #ede9fe, #d1fae5, #fce7f3); }
.bg-clear { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }

@media (max-width: 520px) {
  .rank-card {
    flex-direction: column;
  }
  .rank-thumb {
    width: 100%;
    height: 140px;
  }
}
