:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #060e0b;
  color: #e8f5ee;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 76% 18%, rgba(39, 209, 127, .13), transparent 35rem),
    radial-gradient(ellipse at 8% 88%, rgba(39, 209, 127, .07), transparent 30rem),
    #060e0b;
}
a { color: inherit; }
button { font: inherit; }
.errorPage {
  width: min(100% - 36px, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.errorLogo { display: inline-flex; margin-bottom: 40px; }
.errorLogo img { display: block; width: 164px; height: 82px; object-fit: contain; }
.errorCode {
  margin: 0 0 14px;
  color: #27d17f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}
.errorPage h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 8vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.errorCopy {
  max-width: 540px;
  margin: 22px 0 0;
  color: #9bc7ad;
  font-size: clamp(17px, 2.6vw, 20px);
  line-height: 1.6;
}
.errorActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.errorButton {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.errorButton:hover { transform: translateY(-2px); }
.errorButton:focus-visible, .errorLogo:focus-visible { outline: 3px solid #526fe5; outline-offset: 4px; }
.errorButtonPrimary { background: #27d17f; color: #031109; }
.errorButtonPrimary:hover { background: #49e394; }
.errorButtonSecondary { border-color: #31513e; color: #e8f5ee; }
.errorButtonSecondary:hover { border-color: #27d17f; }
.errorFoot { margin: 64px 0 0; color: #718d7c; font-size: 13px; }

@media (max-width: 560px) {
  .errorPage { width: min(100% - 32px, 760px); }
  .errorLogo { margin-bottom: 28px; }
  .errorActions { width: 100%; }
  .errorButton { flex: 1 1 100%; }
  .errorFoot { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
