* {
    box-sizing: border-box;
}

html,
body.deus-error-page {
    min-height: 100%;
    margin: 0;
}

body.deus-error-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(44, 84, 180, 0.22), transparent 42%),
        #020611;
    color: #f5f7ff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.deus-error-card {
    width: min(100%, 560px);
    padding: 48px 36px;
    border: 1px solid rgba(100, 134, 214, 0.26);
    border-radius: 18px;
    background: rgba(6, 15, 37, 0.95);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    text-align: center;
}

.deus-error-code {
    margin-bottom: 16px;
    color: #7598ef;
    font-size: clamp(64px, 15vw, 112px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.deus-error-card h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1.2;
}

.deus-error-card p {
    margin: 0;
    color: #aebbd8;
    font-size: 17px;
    line-height: 1.65;
}

.deus-error-home-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
}

.deus-error-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 26px;
    padding: 0 24px;
    border: 1px solid rgba(84, 132, 255, 0.58);
    border-radius: 10px;
    background: #173679;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.deus-error-home-actions .deus-error-home-button {
    margin-top: 0;
}

.deus-error-home-button:hover {
    background: #214694;
    border-color: rgba(119, 157, 255, 0.92);
    color: #fff;
    transform: translateY(-1px);
}

.deus-error-home-button:focus-visible {
    outline: 3px solid rgba(72, 124, 255, 0.35);
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .deus-error-card {
        padding: 40px 22px;
    }

    .deus-error-home-button {
        width: 100%;
    }
}
