:root {
  color-scheme: dark;
  --background: #020617;
  --card: rgba(15, 23, 42, 0.86);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --accent: #ef4444;
  --accent-light: #fca5a5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(239, 68, 68, 0.12), transparent 35%),
    var(--background);
  color: var(--text);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.error-card {
  width: min(100%, 680px);
  padding: clamp(36px, 8vw, 72px) clamp(24px, 7vw, 64px);
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  animation: cardIn 0.7s ease both;
}

.error-icon {
  width: clamp(104px, 22vw, 150px);
  margin: 0 auto 30px;
  filter: drop-shadow(0 14px 30px rgba(239, 68, 68, 0.22));
}

.error-icon svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.error-icon circle,
.error-icon path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
}

.error-icon .icon-dot {
  fill: var(--accent-light);
  stroke: none;
}

h1 {
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.035em;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-card {
    animation: none;
  }
}
