/* ── Lore page ─────────────────────────────────────────────────────────────── */
.loreGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.loreCard {
  background: var(--dark-card);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.loreCard:hover { border-color: rgba(232,220,200,0.25); }

.loreCard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.loreCard:hover::before { transform: scaleX(1); }

.loreIcon {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.loreTitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--bone);
  margin-bottom: 0.75rem;
}

.loreText {
  font-size: 0.88rem;
  color: var(--bone-dim);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.loreLocked {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.7;
}

/* ── World page ────────────────────────────────────────────────────────────── */
.worldIntro {
  max-width: 640px;
  margin: 0 auto 4rem;
  text-align: center;
}

.worldText {
  font-size: 1rem;
  color: var(--bone-dim);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.locationGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.locationCard {
  background: var(--dark-card);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.locationCard:hover {
  border-color: rgba(232,220,200,0.25);
  transform: translateY(-2px);
}

.locationHeader {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.locationIcon { font-size: 1.5rem; }

.locationName {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--bone);
}

.locationDesc {
  font-size: 0.88rem;
  color: var(--bone-dim);
  line-height: 1.75;
}

/* ── Characters page ───────────────────────────────────────────────────────── */
.characterGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.characterCard {
  background: var(--dark-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.characterCard:hover {
  border-color: rgba(232,220,200,0.25);
  transform: translateY(-3px);
}

.characterCardLocked { opacity: 0.6; }

.characterArt {
  position: relative;
  aspect-ratio: 1;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.characterEmoji {
  font-size: 5rem;
  opacity: 0.15;
}

.characterLockedOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--bone-dim);
  opacity: 0.08;
}

.characterInfo {
  padding: 1.5rem;
}

.characterRole {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.characterName {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--bone);
  margin-bottom: 0.65rem;
}

.characterDesc {
  font-size: 0.85rem;
  color: var(--bone-dim);
  line-height: 1.7;
}

/* ── Music page ────────────────────────────────────────────────────────────── */
.tracklist {
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}

.track {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.track:last-child { border-bottom: none; }
.track:hover { background: rgba(232,220,200,0.04); }

.trackNum {
  font-size: 0.75rem;
  color: var(--bone-dim);
  opacity: 0.5;
  min-width: 2rem;
  font-variant-numeric: tabular-nums;
}

.trackInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trackTitle {
  font-size: 0.9rem;
  color: var(--bone);
}

.trackVibe {
  font-size: 0.75rem;
  color: var(--bone-dim);
  opacity: 0.6;
}

.trackPlay {
  font-size: 0.8rem;
  color: var(--red);
  opacity: 0.7;
  transition: opacity 0.2s;
  cursor: pointer;
}

.trackPlay:hover { opacity: 1; }

.musicEmbed {
  margin-bottom: 3rem;
}

.musicEmbedPlaceholder {
  border: 1px dashed var(--border);
  padding: 4rem 2rem;
  text-align: center;
  background: var(--dark-card);
}

.musicEmbedIcon {
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.musicEmbedText {
  font-size: 0.85rem;
  color: var(--bone-dim);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.musicEmbedBtn {
  display: inline-flex;
  padding: 0.65rem 1.5rem;
  background: var(--red);
  color: var(--bone);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s;
}

.musicEmbedBtn:hover { background: #a93226; }

.musicPatreon {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  background: var(--dark-card);
}

.musicPatreonTitle {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--bone);
  margin-bottom: 0.75rem;
}

.musicPatreonText {
  font-size: 0.88rem;
  color: var(--bone-dim);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.musicPatreonBtn {
  display: inline-flex;
  padding: 0.7rem 1.75rem;
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.musicPatreonBtn:hover {
  border-color: var(--bone-dim);
  color: var(--bone);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .loreGrid,
  .locationGrid,
  .characterGrid { grid-template-columns: 1fr; }
  .musicEmbedPlaceholder { padding: 2.5rem 1.25rem; }
}
