/* Standalone error pages (404/500/503 without full site chrome) */

.mh-error-standalone {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mh-error-brand {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 31, 101, 0.22);
  background: rgba(4, 1, 3, 0.72);
}

.mh-error-brand__inner {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.mh-error-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mh-gold-light, #ffd97a);
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.mh-error-brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff3d78, #720020);
  color: var(--mh-gold-light, #ffd97a);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.mh-error-standalone__main {
  flex: 1;
}

.mh-error-standalone__foot {
  padding: 16px 0 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

.mh-error-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  color: var(--mh-gold-light, #ffd97a);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mh-error-page--503 {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.mh-error-page--503 .mh-error-page__inner {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.mh-error-page--503 .mh-error-art {
  min-height: 220px;
  max-width: 220px;
  margin-inline: auto;
}

.mh-error-page--503 .mh-actions {
  justify-content: center;
}

.mh-error-page--503 .mh-error-art::before {
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(255, 217, 122, 0.15), rgba(255, 31, 101, 0.55), rgba(255, 217, 122, 0.15));
  box-shadow: 0 0 40px rgba(255, 31, 101, 0.35);
  animation: mh-error-gear-spin 12s linear infinite;
}

.mh-error-page--503 .mh-error-art span {
  top: 50%;
  font-size: 52px;
  width: 72px;
  height: 72px;
  background: linear-gradient(180deg, #4a0012, #7a0019);
  border: 2px solid rgba(255, 217, 122, 0.45);
}

.mh-error-page--500 .mh-error-art::before {
  width: 180px;
  height: 130px;
  top: 28%;
  border-radius: 60% 60% 40% 40%;
  border-bottom-width: 14px;
  transform: translateX(-50%) rotate(-4deg);
}

.mh-error-page--500 .mh-error-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 200px;
  height: 90px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 42px 28px at 18% 50%, rgba(255, 31, 101, 0.55), transparent 70%),
    radial-gradient(ellipse 42px 28px at 82% 50%, rgba(255, 31, 101, 0.55), transparent 70%);
  pointer-events: none;
}

.mh-error-page--500 .mh-error-art span {
  top: 36%;
}

.mh-error-page--403 .mh-error-art::before {
  width: 160px;
  height: 160px;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(255, 217, 122, 0.35);
  background: radial-gradient(circle, rgba(255, 31, 101, 0.25), transparent 70%);
  box-shadow: 0 0 48px rgba(255, 31, 101, 0.28);
}

.mh-error-page--403 .mh-error-art span {
  top: 50%;
  font-size: 56px;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #4a0012, #7a0019);
  border: 2px solid rgba(255, 217, 122, 0.45);
  line-height: 1;
}

.mh-error-links .mh-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.mh-error-links .mh-card:hover {
  border-color: rgba(255, 31, 101, 0.55);
  transform: translateY(-2px);
}

.mh-error-links .mh-card span {
  color: var(--mh-pink, #ff1f65);
  font-weight: 800;
}

.mh-error-links article.mh-card h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.mh-error-links article.mh-card .mh-card__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  line-height: 1.45;
}

@keyframes mh-error-gear-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 768px) {
  .mh-error-page--503 .mh-error-page__inner {
    text-align: center;
  }
}
