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

html, body {
  min-height: 100%;
  background: radial-gradient(ellipse at top, #241a2e 0%, #0a0710 70%);
  font-family: 'Permanent Marker', cursive;
  color: #fff;
}

.error-wrap {
  min-height: 100vh;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

/* stesso trattamento del logo dell'hub: mix-blend-mode "screen" fa sparire
   lo sfondo scuro della foto (muro di mattoni) contro lo sfondo del sito,
   lasciando emergere solo neon e scritte. */
.error-logo {
  display: block;
  width: min(420px, 78vw);
  height: auto;
  margin-bottom: 8px;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at center, #000 22%, rgba(0,0,0,0.85) 40%, transparent 92%);
  mask-image: radial-gradient(ellipse 62% 60% at center, #000 22%, rgba(0,0,0,0.85) 40%, transparent 92%);
  filter: brightness(0.72) contrast(1.25) saturate(1.2)
    drop-shadow(0 0 30px rgba(255, 45, 176, 0.3)) drop-shadow(0 0 55px rgba(0, 229, 255, 0.2));
}

.error-card {
  max-width: 480px;
}

.error-tag {
  font-family: 'Bangers', cursive;
  letter-spacing: 4px;
  font-size: 16px;
  color: #ff2fb0;
  text-shadow: 0 0 12px rgba(255, 47, 176, 0.6);
  margin-bottom: 6px;
}

.error-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: 1px;
  color: #ffe600;
  text-shadow:
    3px 3px 0 #ff00c8,
    6px 6px 0 #00e5ff,
    9px 9px 14px rgba(0,0,0,0.55);
  transform: rotate(-1.5deg);
  margin-bottom: 16px;
}

.error-text {
  font-size: 15px;
  line-height: 1.6;
  color: #cfc3d6;
  margin-bottom: 26px;
}

.error-btn {
  display: inline-block;
  font-family: 'Bangers', cursive;
  font-size: 18px;
  letter-spacing: 1px;
  color: #0a0710;
  background: linear-gradient(145deg, #00e5ff 0%, #ff2fb0 100%);
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 0 #000, 0 6px 18px rgba(0,0,0,0.5);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.error-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #000, 0 10px 22px rgba(0,0,0,0.55);
}

.error-btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #000, 0 3px 10px rgba(0,0,0,0.5);
}
