main {
  width: 100%;
  max-width: 960px;
  padding: 0 20px;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.1em;
}
.stats-bar span { color: #b066ff; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.mandala-card {
  background: #12121a;
  border: 1px solid #1e1e2e;
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.mandala-card:hover {
  border-color: #3c007c;
  cursor: pointer;
}

.mandala-card img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  background: #1a1a2a;
}

.mandala-card .label {
  padding: 8px;
  text-align: center;
  font-size: 0.7rem;
  color: #555;
  letter-spacing: 0.1em;
}

.owner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2a3a;
  color: #e0e0e0;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 0.6rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s;
}

.owner-row:hover .tooltip { visibility: visible; opacity: 1; }

#loading {
  text-align: center;
  padding: 60px 20px;
  color: #444;
  font-size: 0.85rem;
}

#error {
  text-align: center;
  padding: 40px 20px;
  color: #ff6666;
  font-size: 0.85rem;
}
