/* Основные стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
}

/* Контейнер приложения */
.app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
    opacity: 0;
    transition: opacity 2.5s cubic-bezier(0.4,0,0.2,1);
}

.app-container.loaded {
    opacity: 1;
}

/* Анимированный фон */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('../img/photo_2025-06-26_23-01-55.jpg') center center / cover no-repeat;
}

.animated-background.gradient-bg {
    background: linear-gradient(45deg, #000000, #0a0a1a, #1a1a3e, #0f0f2e, #000033);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(30, 30, 100, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(60, 60, 150, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(20, 20, 80, 0.3) 0%, transparent 50%);
    animation: overlayPulse 8s ease-in-out infinite;
    z-index: -1;
}

/* Верхняя секция */
.top-section {
    width: 100vw;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
}

.user-info {
    position: absolute;
    top: 20px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(100, 100, 255, 0.8);
    box-shadow: 0 0 20px rgba(60, 60, 150, 0.4);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.username {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 0 10px rgba(100, 100, 255, 0.5);
}

.user-status {
    font-size: 11px;
    color: rgba(100, 100, 255, 0.8);
    font-weight: 500;
}

/* Правая панель */
.right-panel {
    min-height: 480px;
    min-width: 280px;
    background: linear-gradient(135deg, rgba(20, 20, 60, 0.9), rgba(40, 40, 100, 0.9));
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 48px 32px;
    border: 2px solid rgba(60, 60, 150, 0.6);
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 20;
    box-shadow: 0 8px 32px rgba(20, 20, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: flex-end;
    width: 100%;
}

.info-link {
    text-decoration: none;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    padding: 28px 48px;
    border-radius: 12px;
    min-width: 220px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(30, 30, 80, 0.8), rgba(50, 50, 120, 0.8));
    border: 2px solid rgba(80, 80, 200, 0.6);
    box-shadow: 0 4px 20px rgba(20, 20, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.info-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 100, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.info-link:hover::before {
    left: 100%;
}

.info-link:hover {
    background: linear-gradient(135deg, rgba(50, 50, 120, 0.9), rgba(80, 80, 180, 0.9));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(60, 60, 150, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(120, 120, 255, 0.8);
    color: #fff;
}

.info-link:active {
    transform: translateY(-1px) scale(1.02);
}

.link-text {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(100, 100, 255, 0.5);
}

/* Основной контент */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 24px;
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

.welcome-section {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #4A59F0, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(73, 86, 228, 0.514);
}

.welcome-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Нижняя навигация */
.bottom-navigation {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 24px;
    gap: 16px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.nav-button {
    position: relative;
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 20, 60, 0.9), rgba(40, 40, 100, 0.9));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(60, 60, 150, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(20, 20, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(80, 80, 200, 0.3), rgba(120, 120, 255, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-button:hover::before {
    opacity: 1;
}

.nav-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(60, 60, 150, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(100, 100, 255, 0.8);
}

.nav-button:active {
    transform: translateY(-2px) scale(1.02);
}

.button-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(100, 100, 255, 0.5));
}

.button-text {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(100, 100, 255, 0.5);
    text-align: center;
    line-height: 1.2;
}

/* Специальные стили для кнопок */
.games-btn:hover {
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.4);
}

.nft-btn:hover {
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.4);
}

.profile-btn:hover {
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

/* Загрузочный экран */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(10,10,26,0.85), rgba(26,26,62,0.85), rgba(15,15,46,0.85), rgba(0,0,51,0.85));
    background-image: url('../img/photo_2025-06-15_10-32-34.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 5s cubic-bezier(0.4,0,0.2,1), transform 5s cubic-bezier(0.4,0,0.2,1);
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(10, 10, 26, 0.5), rgba(26, 26, 62, 0.5), rgba(15, 15, 46, 0.5), rgba(0, 0, 51, 0.5));
    z-index: 1;
    pointer-events: none;
}

.loading-screen.hidden {
    opacity: 0;
    transform: scale(1.08);
    pointer-events: none;
    transition: opacity 5s cubic-bezier(0.4,0,0.2,1), transform 5s cubic-bezier(0.4,0,0.2,1);
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.loading-text {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 20px rgba(100, 100, 255, 0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loading-progress {
    width: 300px;
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(100, 100, 255, 0.8), #fff);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 20px rgba(100, 100, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(100, 100, 255, 0.8);
    }
}

@keyframes progressShine {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

/* Адаптивность для загрузочного экрана */
@media (max-width: 768px) {
    .loading-text {
        font-size: 20px;
    }
    
    .loading-progress {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .loading-text {
        font-size: 18px;
    }
    
    .loading-progress {
        width: 200px;
    }
    
    .loading-content {
        gap: 30px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .user-info {
        top: 12px;
        left: 12px;
    }
    .right-panel {
        right: 8px;
        min-width: 200px;
        min-height: 360px;
        padding: 32px 16px;
    }
    .main-content {
        padding: 30px 20px;
        margin-top: 70px;
    }
    
    .bottom-navigation {
        padding: 16px 20px;
        gap: 12px;
    }
    
    .nav-button {
        width: 70px;
        height: 70px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .info-links {
        gap: 32px;
    }
    .info-link {
        font-size: 20px;
        padding: 20px 24px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .user-info {
        top: 8px;
        left: 8px;
    }
    .right-panel {
        right: 2px;
        min-width: 140px;
        min-height: 240px;
        padding: 16px 8px;
    }
    .info-links {
        gap: 20px;
    }
    
    .bottom-navigation {
        gap: 8px;
    }
    
    .nav-button {
        width: 60px;
        height: 60px;
    }
    
    .button-text {
        font-size: 9px;
    }
    .info-link {
        font-size: 14px;
        padding: 12px 12px;
        min-width: 100px;
    }
}

/* Эффекты при наведении */
.nav-button:hover .button-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Плавные переходы */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Скрытие скроллбара */
::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Анимации фона */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes overlayPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Центральное изображение */
.center-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

.center-image {
    width: 560px;
    height: 560px;
    object-fit: contain;
    border-radius: 20px;
    transform: rotate(-5deg);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6)) 
            drop-shadow(0 0 60px rgba(255, 215, 0, 0.4))
            drop-shadow(0 0 90px rgba(255, 215, 0, 0.2));
    transition: all 0.5s ease;
    animation: imageFloat 4s ease-in-out infinite;
}

.center-image:hover {
    transform: rotate(-3deg) scale(1.05);
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8)) 
            drop-shadow(0 0 80px rgba(255, 215, 0, 0.6))
            drop-shadow(0 0 120px rgba(255, 215, 0, 0.4));
}

@keyframes imageFloat {
    0%, 100% {
        transform: rotate(-5deg) translateY(0px);
    }
    50% {
        transform: rotate(-5deg) translateY(-10px);
    }
}

/* Адаптивность для изображения */
@media (max-width: 768px) {
    .center-image {
        width: 440px;
        height: 440px;
    }
}

@media (max-width: 480px) {
    .center-image {
        width: 360px;
        height: 360px;
    }
    
    .center-image-container {
        margin: 20px 0;
    }
}

/* Загрузчик страницы */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(74, 89, 240, 0.3);
    border-top: 3px solid #4A59F0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.page-loader p {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(74, 89, 240, 0.5);
}

/* NFT картинка в левом нижнем углу */
.nft-corner-image {
    position: fixed;
    bottom: 120px;
    left: 24px;
    z-index: 15;
    transition: all 0.3s ease;
}

.nft-corner-border {
    position: relative;
    display: inline-block;
    border-left: 2px solid rgba(34, 197, 94, 0.8);
    border-right: 2px solid rgba(34, 197, 94, 0.8);
    border-radius: 14px;
    background: transparent;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    padding: 0;
}

.nft-corner-border::before,
.nft-corner-border::after {
    content: '';
    position: absolute;
    left: 10%;
    width: 80%;
    height: 0;
    border-top: 2px solid rgba(34, 197, 94, 0.8);
    border-radius: 8px;
}

.nft-corner-border::before {
    top: 0;
}

.nft-corner-border::after {
    bottom: 0;
    border-top: none;
    border-bottom: 2px solid rgba(34, 197, 94, 0.8);
}

.corner-nft-image {
    display: block;
    width: 560px;
    height: auto;
    border: 2.5px solid #2563eb;
    border-radius: 24px;
    background: transparent;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.corner-nft-image:hover {
    box-shadow: 0 0 40px 8px rgba(37, 99, 235, 0.5);
    border-color: #3b82f6;
}

@media (max-width: 768px) {
    .corner-nft-image {
        width: 350px;
    }
}

@media (max-width: 480px) {
    .corner-nft-image {
        width: 200px;
    }
}

/* NFT Bonus Button Styles */
.nft-bonus-btn-container.top-right {
    position: fixed;
    top: 80px;
    right: 32px;
    left: auto;
    z-index: 50;
    display: flex;
    align-items: flex-start;
}
.nft-bonus-btn {
    background: linear-gradient(135deg, rgba(20, 20, 60, 0.9), rgba(40, 40, 100, 0.9));
    color: #fff;
    font-size: 36px;
    font-weight: 900;
    padding: 38px 110px;
    border: 2px solid rgba(60, 60, 150, 0.6);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(20, 20, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 32px rgba(22,32,77,0.35);
    border-left: none;
    border-right: none;
}
.nft-bonus-btn::before {
    display: none;
}
.nft-bonus-btn:hover {
    background: linear-gradient(135deg, rgba(50, 50, 120, 0.9), rgba(80, 80, 180, 0.9));
    box-shadow: 0 15px 40px rgba(60, 60, 150, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(100, 100, 255, 0.8);
    color: #fff;
    transform: translateY(-4px) scale(1.05);
}
.nft-bonus-btn:active {
    transform: translateY(-2px) scale(1.02);
}
@media (max-width: 768px) {
    .nft-bonus-btn-container.top-right { top: 30px; right: 6px; }
    .nft-bonus-btn { font-size: 22px; padding: 18px 32px; border-radius: 12px; }
}
@media (max-width: 480px) {
    .nft-bonus-btn-container.top-right { top: 8px; right: 2px; }
    .nft-bonus-btn { font-size: 14px; padding: 8px 8px; border-radius: 8px; }
}
.nft-bonus-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: transparent;
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s;
}
.nft-bonus-modal-content {
    background: none;
    color: #fff;
    padding: 0;
    border-radius: 0;
    font-size: 48px;
    font-weight: 900;
    box-shadow: none;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 2px 32px rgba(22,32,77,0.25);
    animation: fadeInModal 0.4s;
}
@media (max-width: 768px) {
    .nft-bonus-modal-content { font-size: 28px; }
}
@media (max-width: 480px) {
    .nft-bonus-modal-content { font-size: 18px; }
}
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInModal {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
} 

/* Сброс выделения и tap highlight для всех интерактивных кнопок */
button, .nav-button, .info-link, .nft-bonus-btn, .action-btn, .wallet-btn, .close-button, .setting-button, .confirm-buy-btn, .game-card, .back-button {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

/* Мобильная оптимизация: упрощаем box-shadow и blur на мобильных */
@media (max-width: 480px) {
  .right-panel, .stat-card, .action-btn, .nav-button, .info-link, .nft-bonus-btn, .wallet-btn, .modal-content {
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  .animated-background, .gradient-overlay {
    animation: none !important;
    background-size: cover !important;
  }
  * {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
} 