.rpg-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .rpg-meta-row {
    grid-template-columns: 1fr;
  }
}

.story-outline,
.achievements-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 16, 32, 0.75);
  padding: 8px 12px;
}

.story-outline summary,
.achievements-panel summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.story-intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0 10px;
}

.story-list {
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
  max-height: 160px;
  overflow-y: auto;
}

.story-chapter {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.story-chapter:last-child {
  border-bottom: none;
}

.story-ch-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.story-done .story-ch-num {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.story-current .story-ch-num {
  background: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.story-locked .story-ch-num {
  background: rgba(100, 116, 139, 0.25);
  color: #94a3b8;
}

.story-ch-body strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.story-ch-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.story-current .story-ch-body strong {
  color: #fcd34d;
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.ach-card {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.4;
}

.ach-unlocked {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.ach-locked {
  background: rgba(12, 22, 43, 0.6);
  opacity: 0.72;
}

.ach-icon {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.ach-title {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.ach-desc {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

#ach-count {
  font-weight: 400;
  color: #7dd3fc;
  margin-left: 6px;
}

.rpg-actions .game-btn small {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  margin-top: 3px;
  line-height: 1.35;
  font-weight: 400;
}
