/* ============================================
   SKELETON MENU V2 - MODERN DESIGN
   ============================================ */

.skeleton-menu-v2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.98) 0%, rgba(15, 25, 35, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

/* Header */
.skeleton-menu-v2 .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    position: relative;
}

.skeleton-menu-v2 h1 {
    font-size: 26px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    margin: 0;
    letter-spacing: 2px;
}

.skeleton-menu-v2 .close-btn {
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    font-size: 24px;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-menu-v2 .close-btn:hover {
    background: rgba(255, 107, 107, 0.4);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    transform: scale(1.1);
}

/* Menu Navigation - используется общий файл menu-navigation.css */

/* Body */
.skeleton-menu-v2 .menu-body {
    display: grid;
    grid-template-columns: 350px 1fr 400px;
    flex: 1;
    gap: 20px;
    padding: 30px;
    overflow: hidden;
}

/* Skeleton Panel (Left) */
.skeleton-menu-v2 .skeleton-panel {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.skeleton-menu-v2 #skeleton-canvas-v2 {
    width: 350px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.08) 0%, rgba(0, 100, 200, 0.05) 50%, transparent 70%);
    border: 3px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    cursor: crosshair;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2), inset 0 0 50px rgba(0, 255, 136, 0.05);
    transition: all 0.3s ease;
    display: block;
}

.skeleton-menu-v2 #skeleton-canvas-v2:hover {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4), inset 0 0 60px rgba(0, 255, 136, 0.1);
}

.skeleton-menu-v2 .bone-info {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.skeleton-menu-v2 .bone-info-wrapper {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.skeleton-menu-v2 .bone-info-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.skeleton-menu-v2 .hover-bone-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    padding: 5px 10px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    display: none;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.skeleton-menu-v2 .selected-bone-name {
    font-size: 16px;
    font-weight: 700;
    color: #00ff88;
    margin: 0;
}

.skeleton-menu-v2 .current-material-name {
    font-size: 14px;
    color: #ffc107;
    font-weight: 600;
    margin: 0;
}

.skeleton-menu-v2 .reset-bone-btn {
    margin: 10px auto 0 auto !important;
    width: 80% !important;
    max-width: 250px !important;
    background: rgba(255, 107, 107, 0.15) !important;
    border: 2px solid rgba(255, 107, 107, 0.5) !important;
    color: #ff6b6b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.skeleton-menu-v2 .reset-bone-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.skeleton-menu-v2 .reset-bone-btn:active {
    transform: translateY(0);
}

.skeleton-menu-v2 .reset-bone-btn.hidden {
    display: none !important;
}

.skeleton-menu-v2 .bone-info-wrapper.hidden {
    display: none !important;
}

/* Center Preview Panel */
.skeleton-menu-v2 .preview-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 15px;
    position: relative;
}

/* Shop Panel (Right) */
.skeleton-menu-v2 .shop-panel {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

/* Resources Panel */
.skeleton-menu-v2 .resources-panel {
    display: flex;
    gap: 15px;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    flex-shrink: 0;
}

.skeleton-menu-v2 .resource-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.skeleton-menu-v2 .resource-item:hover {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.skeleton-menu-v2 .resource-icon {
    font-size: 24px;
    line-height: 1;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 255, 136, 0.4));
}

.skeleton-menu-v2 .resource-item:hover .resource-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 3px 10px rgba(0, 255, 136, 0.6));
}

.skeleton-menu-v2 .resource-value {
    font-size: 18px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    min-width: 50px;
    text-align: right;
}

.skeleton-menu-v2 .resource-value {
    font-size: 18px;
    font-weight: 700;
    color: #00ff88;
    min-width: 40px;
    text-align: right;
}

.skeleton-menu-v2 .materials-section {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skeleton-menu-v2 .materials-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #00ff88;
    margin: 0 0 20px 0;
    text-align: center;
    flex-shrink: 0;
}

/* Materials Grid */
.skeleton-menu-v2 .materials-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
}

.skeleton-menu-v2 .no-bone-selected {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

/* Material Card */
.skeleton-menu-v2 .material-card {
    background: linear-gradient(135deg, rgba(30, 40, 60, 0.8) 0%, rgba(20, 30, 50, 0.8) 100%);
    border: 2px solid rgba(100, 150, 200, 0.3);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.3s ease-out forwards;
    opacity: 0;
    flex-shrink: 0;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skeleton-menu-v2 .material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skeleton-menu-v2 .material-card:hover::before {
    left: 100%;
}

.skeleton-menu-v2 .material-card:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 255, 0.2) 100%);
    border-color: #00ff88;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.skeleton-menu-v2 .material-card.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 200, 255, 0.3) 100%);
    border-color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

.skeleton-menu-v2 .material-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.skeleton-menu-v2 .material-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skeleton-menu-v2 .material-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.skeleton-menu-v2 .card-bonus {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #00ff88;
    font-weight: 600;
}

.skeleton-menu-v2 .card-bonus img {
    width: 18px;
    height: 18px;
}

.skeleton-menu-v2 .card-price {
    font-size: 14px;
    font-weight: 700;
    color: #ffc107;
}

/* Material Details */
.skeleton-menu-v2 .material-details {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skeleton-menu-v2 .material-details.hidden {
    display: none;
}

.skeleton-menu-v2 .detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #00ff88;
    margin: 0 0 15px 0;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.skeleton-menu-v2 .requirements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.skeleton-menu-v2 .requirement-item {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #ffc107;
    text-align: center;
}

.skeleton-menu-v2 .requirement-item.fulfilled {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

.skeleton-menu-v2 .requirement-item.not-fulfilled {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

.skeleton-menu-v2 .stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.skeleton-menu-v2 .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #00ff88;
}

.skeleton-menu-v2 .stat-item img {
    width: 20px;
    height: 20px;
}

.skeleton-menu-v2 .stat-item span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.skeleton-menu-v2 .stat-item.stat-increase {
    border-left-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.skeleton-menu-v2 .stat-item.stat-increase span {
    color: #00ff88;
}

.skeleton-menu-v2 .stat-item.stat-decrease {
    border-left-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.skeleton-menu-v2 .stat-item.stat-decrease span {
    color: #ff6b6b;
}

.skeleton-menu-v2 .detail-price {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 700;
}

.skeleton-menu-v2 .detail-price span {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

/* Buy Button */
.skeleton-menu-v2 .buy-button {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%) !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 15px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.skeleton-menu-v2 .buy-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5) !important;
    background: linear-gradient(135deg, #00ffaa 0%, #00dd7a 100%) !important;
}

.skeleton-menu-v2 .buy-button:active {
    transform: translateY(-1px) !important;
}

/* Scrollbar */
.skeleton-menu-v2 .materials-grid::-webkit-scrollbar {
    width: 8px;
}

.skeleton-menu-v2 .materials-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.skeleton-menu-v2 .materials-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 4px;
}

.skeleton-menu-v2 .materials-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffaa 0%, #00dd7a 100%);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Landscape (1200px and below) */
@media (max-width: 1200px) {
    .skeleton-menu-v2 .menu-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        padding: 20px;
    }
    
    .skeleton-menu-v2 .skeleton-panel {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    
    .skeleton-menu-v2 #skeleton-canvas-v2 {
        width: 280px;
        height: 320px;
        flex-shrink: 0;
    }
    
    .skeleton-menu-v2 .bone-info-wrapper {
        flex: 1;
    }
    
    .skeleton-menu-v2 .preview-panel {
        display: none;
    }
    
    .skeleton-menu-v2 .shop-panel {
        width: 100%;
    }
    
    .skeleton-menu-v2 .materials-grid {
        max-height: 400px;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    .skeleton-menu-v2 .menu-header {
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .skeleton-menu-v2 h1 {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .skeleton-menu-v2 .close-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .skeleton-menu-v2 .menu-navigation {
        order: 3;
    }
    
    .skeleton-menu-v2 .menu-body {
        padding: 15px;
        gap: 15px;
    }
    
    .skeleton-menu-v2 .skeleton-panel {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .skeleton-menu-v2 #skeleton-canvas-v2 {
        width: 100% !important;
        max-width: 320px !important;
        height: 350px !important;
        margin: 0 auto;
    }
    
    .skeleton-menu-v2 .bone-info-wrapper {
        width: 100%;
    }
    
    .skeleton-menu-v2 .resources-panel {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .skeleton-menu-v2 .resource-item {
        justify-content: space-between;
        width: 100%;
    }
    
    .skeleton-menu-v2 .materials-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .skeleton-menu-v2 .materials-grid {
        gap: 10px;
        max-height: 350px;
    }
    
    .skeleton-menu-v2 .material-card {
        padding: 12px;
        gap: 12px;
    }
    
    .skeleton-menu-v2 .material-card img {
        width: 45px;
        height: 45px;
    }
    
    .skeleton-menu-v2 .material-card h3 {
        font-size: 15px;
    }
    
    .skeleton-menu-v2 .card-bonus {
        font-size: 12px;
    }
    
    .skeleton-menu-v2 .material-details {
        padding: 12px;
    }
    
    .skeleton-menu-v2 .detail-title {
        font-size: 18px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .skeleton-menu-v2 h1 {
        font-size: 18px;
    }
    
    .skeleton-menu-v2 .close-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    

    
    .skeleton-menu-v2 .menu-body {
        padding: 12px;
        gap: 12px;
    }
    
    .skeleton-menu-v2 #skeleton-canvas-v2 {
        width: 100% !important;
        max-width: 300px !important;
        height: 320px !important;
        margin: 0 auto;
    }
    
    .skeleton-menu-v2 .resources-panel {
        padding: 10px 12px;
    }
    
    .skeleton-menu-v2 .resource-icon {
        font-size: 20px;
    }
    
    .skeleton-menu-v2 .resource-value {
        font-size: 16px;
        min-width: 35px;
    }
    
    .skeleton-menu-v2 .materials-section h2 {
        font-size: 18px;
    }
    
    .skeleton-menu-v2 .materials-grid {
        max-height: 300px;
    }
    
    .skeleton-menu-v2 .material-card {
        padding: 10px;
        gap: 10px;
    }
    
    .skeleton-menu-v2 .material-card img {
        width: 40px;
        height: 40px;
    }
    
    .skeleton-menu-v2 .material-card h3 {
        font-size: 14px;
    }
    
    .skeleton-menu-v2 .card-bonus,
    .skeleton-menu-v2 .card-price {
        font-size: 11px;
    }
    
    .skeleton-menu-v2 .buy-button {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
    
    .skeleton-menu-v2 .reset-bone-btn {
        font-size: 11px !important;
        padding: 8px 12px !important;
    }
}
