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

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

body {
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: #0f1827;
  color: #eaf1ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(40px, -30px); }
  50% { transform: translate(20px, 50px); }
  75% { transform: translate(-30px, 20px); }
}

.checker-background {
  --blob-x: 78vw;
  --blob-y: 18vh;
  --sun-angle: 135deg;
  --cross-angle: 45deg;
  --grid-shift-x: 0px;
  --grid-shift-y: 0px;
  --counter-grid-shift-x: 0px;
  --counter-grid-shift-y: 0px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f1827;
  background-image:
    radial-gradient(circle 560px at var(--blob-x) var(--blob-y), rgba(255,63,50,0.24), rgba(183,18,18,0.11) 42%, transparent 74%),
    linear-gradient(135deg, transparent 0%, rgba(255,42,34,0.018) 30%, rgba(255,78,58,0.055) 49%, rgba(255,42,34,0.02) 64%, transparent 100%),
    repeating-linear-gradient(var(--cross-angle), transparent 0 34px, rgba(255,88,70,0.065) 34px 35px, transparent 35px 68px),
    radial-gradient(circle at 14% 12%, rgba(15,159,143,0.11), transparent 20%),
    radial-gradient(circle at 88% 9%, rgba(249,115,22,0.11), transparent 16%),
    linear-gradient(to right, transparent 0, transparent 23px, rgba(255,99,89,0.075) 24px),
    linear-gradient(to bottom, transparent 0, transparent 23px, rgba(255,99,89,0.055) 24px),
    linear-gradient(to right, transparent 0, transparent 23px, rgba(215,221,230,0.035) 24px),
    linear-gradient(to bottom, transparent 0, transparent 23px, rgba(215,221,230,0.035) 24px);
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    var(--grid-shift-x) var(--grid-shift-y),
    var(--grid-shift-x) var(--grid-shift-y),
    var(--counter-grid-shift-x) var(--counter-grid-shift-y),
    var(--counter-grid-shift-x) var(--counter-grid-shift-y);
  background-size: auto, auto, auto, auto, auto, 24px 24px, 24px 24px, 24px 24px, 24px 24px;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  filter: blur(60px);
  border-radius: 9999px;
  z-index: 0;
  pointer-events: none;
  animation: glowDrift 12s ease-in-out infinite;
}

.ambient-glow-one {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  background: rgba(15,159,143,0.22);
}

.ambient-glow-two {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -120px;
  background: rgba(249,115,22,0.18);
  animation: glowDrift 14s ease-in-out infinite reverse;
}

.content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
}

.error-container {
  text-align: left;
  width: 720px;
  max-width: calc(100% - 48px);
  background: linear-gradient(180deg, rgba(10,14,24,0.82), rgba(10,14,24,0.72));
  backdrop-filter: blur(8px) saturate(110%);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 44px 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.02);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.error-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin: 6px 0 18px 0;
  color: #ffffff;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
}

.error-message {
  font-size: 15px;
  color: #c7d4ee;
  margin-bottom: 18px;
  line-height: 1.6;
}

.error-details {
  background: rgba(255,255,255,0.02);
  border-left: 3px solid rgba(125,176,255,0.14);
  padding: 14px 18px;
  margin: 18px 0 0 0;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  color: #a8d5ff;
  overflow-wrap: anywhere;
}

.error-details::-webkit-scrollbar {
  width: 6px;
}

.error-details::-webkit-scrollbar-track {
  background: rgba(100, 150, 255, 0.1);
  border-radius: 3px;
}

.error-details::-webkit-scrollbar-thumb {
  background: rgba(100, 150, 255, 0.4);
  border-radius: 3px;
}

.error-details::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 150, 255, 0.6);
}

.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #6496ff 0%, #5a7fd8 100%);
  color: white;
  border: 1px solid #6496ff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7aa5ff 0%, #6a8fdd 100%);
  box-shadow: 0 4px 12px rgba(100, 150, 255, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #6496ff;
  border: 1px solid #6496ff;
}

.btn-secondary:hover {
  background: rgba(100, 150, 255, 0.1);
  box-shadow: 0 4px 12px rgba(100, 150, 255, 0.2);
  transform: translateY(-2px);
}

.status-badge {
  display: inline-block;
  background: rgba(100, 150, 255, 0.1);
  border: 1px solid rgba(100, 150, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #a8d5ff;
  margin-top: 20px;
  font-family: 'Courier New', monospace;
}

.common-spots {
  margin-top: 18px;
  font-size: 13px;
  color: #a8d5ff;
}

.common-spots ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.common-spots a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  color: #bfe0ff;
  text-decoration: none;
  font-size: 14px;
}

.icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.icon-wrap svg {
  display: block;
  width: 96px;
  height: 96px;
}

#warnPoly {
  transition: stroke-width 180ms ease;
}

#edgeReflection {
  mix-blend-mode: screen;
  transition: opacity 120ms ease;
}

#diffuseGlow {
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
  pointer-events: none;
}

#warningSvg:hover #warnPoly {
  stroke-width: 2.6;
}

#warningSvg.is-hovered #exclaim {
  filter: drop-shadow(0 0 7px rgba(255, 81, 62, 0.46));
}

.technical {
  margin-top: 18px;
}

.no-message {
  color: #808080;
  font-style: italic;
  font-size: 14px;
}

@media (max-width: 768px) {
  .error-container {
    padding: 40px 30px;
  }

  .error-icon {
    font-size: 60px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-title {
    font-size: 22px;
  }

  .error-message {
    font-size: 14px;
  }

  .checker-background {
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  }
}

@media (max-width: 480px) {
  .error-container {
    padding: 30px 20px;
  }

  .error-icon {
    font-size: 50px;
    margin-bottom: 15px;
  }

  .error-code {
    font-size: 28px;
  }

  .error-title {
    font-size: 18px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
