/*
 * Базовый reset. Раньше его неявно давал MudBlazor.min.css, но на главной он больше не
 * подключается (нужен только админке), поэтому вёрстка приглашения опирается на этот блок.
 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-width: 0;
    border-style: solid;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

strong, b { font-weight: 700; }

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible { outline: none; }

label { display: inline-block; }

button {
    color: inherit;
    border: 0;
    cursor: pointer;
    margin: 0;
    display: inline-flex;
    outline: 0;
    padding: 0;
    position: relative;
    align-items: center;
    user-select: none;
    border-radius: 0;
    vertical-align: middle;
    appearance: none;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
}

button:focus { outline: none; }

input, button, select, optgroup, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button, input { overflow: visible; }
button, select { text-transform: none; }
select { word-wrap: normal; }
button, [type=button], [type=reset], [type=submit] { appearance: button; }
iframe { border: none; height: 100%; width: 100%; }
[hidden] { display: none !important; }

/* FocusOnNavigate ставит фокус на h1: без этого вокруг имён мигает рамка. */
h1:focus, h1:focus-visible { outline: none; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0a0506;
    color: #e8e0d8;
    font-family: "Raleway", "Segoe UI", sans-serif;
}

/* Админка: шапка заходит под системную строку состояния (viewport-fit=cover),
   поэтому добавляем отступ и к шапке, и к контенту под ней. */
.admin-appbar {
    padding-top: env(safe-area-inset-top);
}

.admin-main {
    padding-top: calc(env(safe-area-inset-top) + 56px) !important;
}

.boot {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: #0a0506;
    color: #d4af37;
    transition: opacity 0.6s ease, visibility 0s;
}

.boot.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0s 0.6s;
}

.boot-mark {
    animation: boot-spin 6s ease-in-out infinite;
}

.boot-dots {
    display: flex;
    gap: 10px;
}

.boot-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4af37;
    animation: boot-pulse 1.1s ease-in-out infinite;
}

.boot-dots span:nth-child(2) { animation-delay: 0.15s; }
.boot-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes boot-spin {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.75; }
    50% { transform: rotate(90deg) scale(1.12); opacity: 1; }
}

@keyframes boot-pulse {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.not-found {
    padding: 48px 24px;
    text-align: center;
    font-family: "Raleway", sans-serif;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .boot-dots span, .boot-mark { animation: none; }
    .boot, .boot.is-hidden { transition: none; }
}
