:root {
    --shadow-blur: 20px;
    --shadow-color: rgba(255, 255, 255, 0.7);
    --frost-blur: 2px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: url('./wallp.jpg') center center / cover no-repeat fixed;
    min-height: 100vh;
    margin: 0;
    width: 100vw;
    overflow-x: hidden;
    position: relative;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* Адаптация для полноэкранного режима Telegram */
.tg-fullscreen {
    background: url('./wallp.jpg') center center / cover no-repeat fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.header {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20vh 0 10vh 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: block;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.logo::after {
    content: '';
    display: block;
    margin: 16px auto 0 auto;
    width: 80px;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}
.concept {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Секция с историей */
.story-section {
    position: relative;
    z-index: 10;
}

.story-container {
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.story-item {
    margin-bottom: 120px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.story-item h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    text-align: center !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.story-item p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    text-align: left !important;
    font-weight: 300;
    margin: 0;
}

.story-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 1.5rem;
}

.story-image {
    flex-shrink: 0;
}

.story-text {
    flex: 1;
}

.story-text p {
    margin-bottom: 1rem;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.app-icons {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 4rem 0 2rem 0;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
}

.main-icons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    border-radius: 12px;
    width: 56px;
    height: 56px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}
.icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.icon-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.icon-btn.beatpad {
    background: rgba(0, 0, 0, 0.15);
}
.icon-btn.about {
    background: rgba(255, 255, 255, 0.10);
}
.icon-btn.donate {
    background: rgba(255, 255, 255, 0.20);
}

.app-window {
    position: absolute;
    min-width: 420px;
    max-width: 90vw;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 2000;
    overflow: hidden;
    animation: fadeIn 0.2s;
}
.app-window.active {
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.app-window.bring-to-front {
    z-index: 3000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.window-titlebar {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.04);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}
.window-controls {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}
.window-button {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: #eee;
    margin-right: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.window-button.close { background: #ff5f56; }
.window-button.minimize { background: #ffbd2e; }
.window-button.maximize { background: #27c93f; }
.window-title {
    font-weight: 500;
    font-size: 1.1rem;
    color: #222;
}
.window-content {
    padding: 1.5rem 2rem 2rem 2rem;
}
.app-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}
.app-description {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.2rem;
}
.screenshots-section {
    margin-bottom: 1.2rem;
}
.screenshots-grid {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}
.screenshot-thumb {
    width: 90px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.screenshot-thumb:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transform: scale(1.04);
}
.screenshot-modal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
.screenshot-modal.active {
    display: flex;
}
.screenshot-modal-content {
    position: relative;
    background: transparent;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.screenshot-full {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    margin-bottom: 1rem;
    background: #fff;
    object-fit: contain;
    transition: box-shadow 0.2s;
}
.screenshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.25);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.screenshot-nav.prev { left: -50px; }
.screenshot-nav.next { right: -50px; }
.screenshot-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(0,0,0,0.25);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.7rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.screenshot-counter {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .header {
        min-height: 80vh;
    }
    
    .story-section {
    }
    
    .story-container {
        padding: 0 1rem;
    }
    
    .story-item {
        margin-bottom: 80px;
        padding: 1.5rem;
    }
    
    .story-item h2 {
        font-size: 1rem;
    }
    
    .story-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .story-content {
        flex-direction: row !important;
        gap: 1rem;
    }
    
    .story-image img {
        width: 120px !important;
        height: 150px !important;
    }
    
    .story-image {
        flex-shrink: 0 !important;
    }
    
    .story-text {
        flex: 1 !important;
        min-width: 0;
    }
    

    
    .app-window {
        min-width: 90vw;
        max-width: 98vw;
    }
    .window-content {
    }
    .screenshots-grid {
        gap: 0.4rem;
    }
    .screenshot-thumb {
        width: 70px;
        height: 54px;
    }
    .screenshot-nav.prev { left: -30px; }
    .screenshot-nav.next { right: -30px; }
    .screenshot-close { top: -30px; }
}

.tg-theme-dark {
    background: #181c1f !important;
    color: #fff !important;
}

.app-features {
    margin-top: 1.2rem;
}
.app-features h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.features-list li {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0.3rem;
    padding-left: 1.2em;
    position: relative;
}
.features-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #27c93f;
    font-size: 1.2em;
    top: 0;
}
.app-features.beatpad .features-list li::before {
    color: #ff5f56;
} 