@font-face {
    font-family: 'Cygre';
    src: url('./Cygre-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cygre';
    src: url('./Cygre-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    src: url('./fa-brands-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

.fab {
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.fa-apple::before { content: "\f179"; }
.fa-android::before { content: "\f17b"; }
.fa-windows::before { content: "\f17a"; }
.fa-google-play::before { content: "\f3ab"; }

:root {
    --bg: #0D0E0F;
    --surface: rgba(19, 17, 30, .88);
    --border: #2a2742;
    --text: #f2f1fa;
    --muted: #9a97b0;
    --accent: #7c5cff;
    /* фиолетовый кнопки */
    --accent-hi: #9d7bff;
    --pink: #e85fd9;
    /* розовое пятно aurora */
    --blue: #4a7dff;
    /* синее пятно aurora */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Cygre', sans-serif;
    font-weight: 500;
    font-size: 16px/1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.logo {
    position: relative;
    z-index: 1;
    height: 42px;
    width: auto;
    max-width: 100%;
    margin-bottom: 28px;
}

.aurora {
    position: fixed;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    opacity: .8;
}

.aurora-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: min(100vh, 1057px);
    width: auto;
}

.aurora-right {
    right: 0;
    top: 0;
    height: min(110vh, 1224px);
    width: auto;
}

.aurora-top {
    left: 50%;
    top: 0;
    transform: translateX(-40%);
    width: min(60vw, 721px);
    height: auto;
}

.card {
    position: relative;
    z-index: 1
}

.card {
    width: 100%;
    max-width: 640px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    animation: spin .9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none
    }
}

h1 {
    font-family: 'Cygre', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px
}

p {
    font-family: 'Cygre', sans-serif;
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
}

.hidden {
    display: none
}

.icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(124, 92, 255, .14);
}

.icon svg {
    width: 36px;
    height: 36px;
}

.btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    font-family: inherit;
    transition: background .25s ease, border-color .25s ease, color .25s ease,
                box-shadow .25s ease, transform .15s ease;
    will-change: transform;
}

.btn:active {
    transform: scale(.97);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-hi);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent-hi), var(--accent));
    color: #fff;
    box-shadow: 0 0 0 1px rgba(157, 123, 255, .5), 0 4px 24px rgba(124, 92, 255, .35);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #ad91ff, var(--accent-hi));
    box-shadow: 0 0 0 1px rgba(157, 123, 255, .7), 0 6px 28px rgba(124, 92, 255, .5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(242, 241, 250, .06);
    border-color: #423d63;
    transform: translateY(-2px);
}

.btn-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 20px;
    text-align: left;
}

.btn-store-icon {
    width: 36px;
    flex-shrink: 0;
    font-size: 28px;
    line-height: 1;
    text-align: center;
    color: var(--text);
    opacity: .95;
    transition: opacity .25s ease;
}

.btn-store:hover .btn-store-icon {
    opacity: 1;
}

.btn-store-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}

.btn-store-text small {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.btn-store-text strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.btn-store-ios:hover {
    box-shadow: 0 6px 18px rgba(255, 255, 255, .06), 0 4px 14px rgba(0, 0, 0, .3);
}

.btn-store-android:hover {
    box-shadow: 0 6px 18px rgba(52, 199, 128, .16), 0 4px 14px rgba(0, 0, 0, .3);
}

.btn-store-apk:hover {
    box-shadow: 0 6px 18px rgba(255, 193, 7, .14), 0 4px 14px rgba(0, 0, 0, .3);
}

.btn-store-windows:hover {
    box-shadow: 0 6px 18px rgba(0, 164, 239, .16), 0 4px 14px rgba(0, 0, 0, .3);
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
    }
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

.actions {
    margin-top: 24px
}

.hint {
    margin-top: 20px;
    font-size: 13px
}

.hint a {
    color: var(--accent-hi);
    text-decoration: none
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .logo {
        height: 32px;
        margin-bottom: 22px;
    }

    .card {
        padding: 24px 18px;
        border-radius: 14px;
    }

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 15px;
    }

    .icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .icon svg {
        width: 30px;
        height: 30px;
    }

    .btn {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .btn-store {
        gap: 10px;
        padding: 10px 14px;
    }

    .btn-store-icon {
        width: 28px;
        font-size: 23px;
    }

    .btn-store-text strong {
        font-size: 15px;
    }

    .btn-store-text small {
        font-size: 11px;
    }

    .hint {
        font-size: 12px;
    }
}