* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.index-login-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 15;
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'Roboto', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    pointer-events: auto;
    transition: background 0.2s, color 0.2s;
}
.index-login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: #000000;
    font-family: Arial, sans-serif;
    position: relative;
}

#sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

/* Страница с моделью: fullscreen canvas + QR справа сверху */
body.index-model-page #modelPreviewWrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

body.index-model-page #modelPreviewWrap #modelPreview {
    pointer-events: auto;
}

body.index-model-page #modelPreviewWrap,
body.index-model-page #modelPreview {
    width: 100%;
    height: 100%;
}

body.index-model-page #modelPreview canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

body.index-model-page .index-qr-block {
    position: fixed;
    top: 20px;
    left: 20px;
    right: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 340px;
    pointer-events: auto;
}

body.index-model-page .index-qr-block .contact-text {
    text-align: center;
}

.model-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 20;
    display: none;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    pointer-events: none;
}

.index-qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    pointer-events: auto;
}

.logo-top {
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.logo-top img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1);
}

.logo-top svg {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}

#qrCode {
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

#qrCode canvas {
    display: block;
}

.contact-text {
    color: #808080;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    max-width: 400px;
    line-height: 1.5;
    pointer-events: auto;
}

.email-link {
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.email-link a {
    color: #808080;
    text-decoration: none;
    font-size: 24px;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.email-link a:hover {
    color: #a0a0a0;
}

.hint {
    color: #808080;
    font-size: 14px;
    text-align: center;
    z-index: 2;
}

.star {
    opacity: 0;
    position: absolute;
    background: white;
    box-shadow: 0px 0px 20px 0px rgb(255, 255, 255);
    border-radius: 100%;
    transform-origin: 0, 0;
    animation-timing-function: linear, linear !important;
    animation-iteration-count: infinite, infinite !important;
    animation-delay: -30s, -30s !important;
    pointer-events: none;
}

.star.size-1 {
    width: 1px;
    height: 1px;
}

.star.size-2 {
    width: 2px;
    height: 2px;
}
