:root {
    --radius-md: 18px;
    --bg-deepest: #050a08;
    --bg-dark: #09110e;
    --accent-glow: rgba(20, 184, 166, 0.08);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--bg-deepest);
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #f8fafc;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background: var(--bg-deepest);
}

#app {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
    min-width: 0;
}

img,
svg,
canvas,
video {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
}

h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: rgba(179, 33, 33, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    color: white;
    padding: 1rem 1.2rem;
}

    .blazor-error-boundary::after {
        content: "Wystąpił błąd."
    }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
