@font-face {
    font-family: 'Furore';
    src: url('./fonts/Furore.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Показываем текст сразу, шрифт загрузится позже */
}

@font-face {
    font-family: 'Fontimer';
    src: url('./fonts/AVFontimer-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Показываем текст сразу, шрифт загрузится позже */
}

@font-face {
    font-family: 'Fontimer';
    src: url('./fonts/AVFontimer-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap; /* Показываем текст сразу, шрифт загрузится позже */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fontimer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #545454;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    color: #fff;
    padding: 0;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Анимированные кольца энергии */
.energy-rings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.energy-rings.hidden {
    display: none;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(189, 141, 69, 0.3);
    border-radius: 50%;
    animation: pulse-ring 3s ease-out infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.ring-2 {
    width: 400px;
    height: 400px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 600px;
    height: 600px;
    animation-delay: 1s;
}

.ring-4 {
    width: 800px;
    height: 800px;
    animation-delay: 1.5s;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
        border-color: rgba(189, 141, 69, 0.5);
    }
    50% {
        border-color: rgba(189, 141, 69, 0.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
        border-color: rgba(189, 141, 69, 0);
    }
}

.container {
    background: transparent;
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    overflow: hidden;
    word-wrap: break-word;
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Furore', sans-serif;
    font-size: clamp(1.8rem, 8vw, 3rem);
    margin: 0 0 1rem 0;
    padding: 0;
    color: #bd8d45;
    font-weight: normal;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-shadow: 0 0 20px rgba(189, 141, 69, 0.5);
}

p {
    font-family: 'Fontimer', sans-serif;
    font-size: clamp(1rem, 4vw, 1.2rem);
    color: #fff;
    margin: 0 0 1rem 0;
    padding: 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.subtitle {
    font-family: 'Fontimer', sans-serif;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2rem 0;
    padding: 0;
    line-height: 1.5;
}

.status {
    font-family: 'Fontimer', sans-serif;
    padding: 1rem;
    background: #f0f0f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 1rem;
}

.status.installed {
    background: #d4edda;
    color: #155724;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
}

.install-button {
    font-family: 'Fontimer', sans-serif;
    display: inline-block;
    padding: 1rem 1.5rem;
    background: #bd8d45;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: clamp(0.95rem, 4vw, 1rem);
    font-weight: bold;
    cursor: pointer;
    margin: 1rem 0 0 0;
    transition: background 0.3s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-tap-highlight-color: transparent;
}

.install-button:hover {
    background: #a67a3a;
}

.install-button:active {
    background: #8f6a2f;
}

@media (hover: none) {
    .install-button:hover {
        background: #bd8d45;
    }
}

.install-button.hidden {
    display: none;
}

.install-instructions {
    font-family: 'Fontimer', sans-serif;
    margin: 1rem 0 0 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(189, 141, 69, 0.3);
    font-size: clamp(0.85rem, 3.5vw, 0.9rem);
    color: #fff;
    text-align: left;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.install-instructions.hidden {
    display: none;
}

.install-instructions h3 {
    font-family: 'Furore', sans-serif;
    color: #bd8d45;
    margin: 0 0 0.5rem 0;
    padding: 0;
    font-size: clamp(1rem, 4.5vw, 1.1rem);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-shadow: 0 0 10px rgba(189, 141, 69, 0.3);
}

.install-instructions ul {
    margin: 0.5rem 0 0 1.2rem;
    padding: 0;
    list-style-position: outside;
}

.install-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.install-instructions strong {
    font-weight: bold;
}

.logo {
    max-width: min(200px, 60vw);
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

.installed-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    background: #fafafa;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.installed-content.hidden {
    display: none;
}

.browser-content {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.browser-content.hidden {
    display: none;
}

/* Адаптивность колец для маленьких экранов */
@media (max-width: 480px) {
    .ring-1 {
        width: 150px;
        height: 150px;
    }
    
    .ring-2 {
        width: 300px;
        height: 300px;
    }
    
    .ring-3 {
        width: 450px;
        height: 450px;
    }
    
    .ring-4 {
        width: 600px;
        height: 600px;
    }
}

/* Медиа-запросы для очень маленьких экранов */
@media (max-width: 360px) {
    body {
        padding: 0.5rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .subtitle {
        margin-bottom: 1.5rem;
    }
    
    .install-button {
        padding: 0.875rem 1.25rem;
    }
    
    .install-instructions {
        padding: 0.875rem;
    }
    
    .ring-1 {
        width: 120px;
        height: 120px;
    }
    
    .ring-2 {
        width: 240px;
        height: 240px;
    }
    
    .ring-3 {
        width: 360px;
        height: 360px;
    }
    
    .ring-4 {
        width: 480px;
        height: 480px;
    }
}

/* Предотвращение горизонтальной прокрутки */
@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .container {
        margin: 0;
    }
}

