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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Space Canvas */
#spaceCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #2d1b69 50%, #0f3460 75%, #16213e 100%);
    opacity: 0.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.5);
    padding: 1rem 2rem;
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.3),
        0 0 40px rgba(30, 144, 255, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.celestial {
    font-size: 1.8rem;
    font-weight: 800;
    color: #8a2be2;
    letter-spacing: 0.05em;
    text-shadow: 
        0 0 20px rgba(138, 43, 226, 0.8),
        0 0 40px rgba(30, 144, 255, 0.6),
        0 0 60px rgba(255, 20, 147, 0.4);
    font-family: 'Georgia', serif;
    animation: celestialGlow 3s ease-in-out infinite;
}

.ftc::before {
    content: "✦";
    margin-right: 0.1em;
    font-size: 1.2em;
    vertical-align: middle;
}

.ftc {
    font-size: 0.9rem;
    color: #00ff7f;
    margin-top: -0.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    animation: ftcGlow 4s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #8a2be2;
    border: 1px solid rgba(138, 43, 226, 0.5);
    text-shadow: 
        0 0 15px rgba(138, 43, 226, 0.8),
        0 0 30px rgba(30, 144, 255, 0.6),
        0 0 45px rgba(255, 20, 147, 0.4);
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}


.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Main Page Styles */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 80px;
}

.hero-section {
    text-align: center;
    max-width: 900px;
}

.logo-hero {
    margin-bottom: 3rem;
}

.logo-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.celestial-hero {
    font-size: 5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.9),
        0 0 60px rgba(255, 255, 255, 0.7),
        0 0 90px rgba(255, 255, 255, 0.5);
    font-family: 'Georgia', serif;
    animation: celestialGlow 3s ease-in-out infinite alternate;
}

.celestial-hero::before {
    content: "✦";
    margin-right: 0.1em;
    font-size: 1.1em;
    vertical-align: middle;
}

.ftc-hero {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -0.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.main-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.4);
}

.main-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(255, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}
.btn-icon {
    font-size: 1.1rem;
}

/* Game Container */
.game-container {
    display: flex;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.2),
        0 0 60px rgba(30, 144, 255, 0.15),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Game Sidebar */
.game-sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.2),
        0 0 40px rgba(30, 144, 255, 0.15),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.game-sidebar h3 {
    margin-bottom: 1.5rem;
    color: #8a2be2;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 
        0 0 15px rgba(138, 43, 226, 0.8),
        0 0 30px rgba(30, 144, 255, 0.6),
        0 0 45px rgba(255, 20, 147, 0.4);
    animation: headerGlow 3s ease-in-out infinite;
}

.component-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category h4 {
    color: #00ff7f;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(0, 255, 127, 0.6),
        0 0 20px rgba(138, 43, 226, 0.4),
        0 0 30px rgba(255, 20, 147, 0.3);
    animation: categoryGlow 4s ease-in-out infinite;
}


.components-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.component-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.component-item:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateX(5px) scale(1.05);
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.4),
        0 0 40px rgba(30, 144, 255, 0.3),
        0 0 60px rgba(255, 20, 147, 0.2);
}

.component-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.component-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.component-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 
        0 0 8px rgba(138, 43, 226, 0.4),
        0 0 16px rgba(30, 144, 255, 0.3),
        0 0 24px rgba(255, 20, 147, 0.2);
}

.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.build-area-container {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(30px);
    position: relative;
}

.zoom-controls {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.zoom-controls button {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.zoom-controls button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

#zoomLevel {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    min-width: 60px;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.build-area {
    width: 100%;
    height: 800px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.3),
        0 0 60px rgba(30, 144, 255, 0.2),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(138, 43, 226, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 144, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px;
    pointer-events: none;
    animation: gridPulse 4s ease-in-out infinite;
}

.grid-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 200, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 100, 200, 0.2) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridFloat 5s ease-in-out infinite;
}

.robot-base {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1400px;
    height: 800px;
    transition: transform 0.3s ease;
}

.slot {
    position: absolute;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8), rgba(50, 30, 70, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.1),
        inset 0 0 15px rgba(255, 255, 255, 0.05);
    animation: slotFloat 4s ease-in-out infinite;
}

.slot:hover {
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.2), rgba(255, 100, 200, 0.2));
    border-color: rgba(100, 200, 255, 0.8);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 25px rgba(100, 200, 255, 0.4),
        0 0 50px rgba(255, 100, 200, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transform: scale(1.08) rotate(1deg);
    animation: slotPulse 1s ease-in-out infinite;
}

.slot.drag-over {
    background: linear-gradient(135deg, rgba(100, 255, 100, 0.3), rgba(255, 255, 100, 0.3));
    border-color: rgba(100, 255, 100, 1);
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 15px rgba(100, 255, 100, 0.8);
    box-shadow: 
        0 0 35px rgba(100, 255, 100, 0.6),
        0 0 70px rgba(255, 255, 100, 0.4),
        inset 0 0 25px rgba(100, 255, 100, 0.2);
    transform: scale(1.12) rotate(-1deg);
    animation: slotGlow 0.8s ease-in-out infinite;
}

.slot.occupied {
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.2), rgba(255, 150, 200, 0.2));
    border: 2px solid rgba(255, 200, 100, 0.8);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 200, 100, 0.6);
    box-shadow: 
        0 0 25px rgba(255, 200, 100, 0.4),
        0 0 50px rgba(255, 150, 200, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: occupiedGlow 3s ease-in-out infinite;
}

/* Symmetrical Slot Positions for 1400x800px build area */
.slot[data-slot="center"] { 
    width: 140px; 
    height: 140px; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background: rgba(138, 43, 226, 0.3);
    border: 3px solid rgba(138, 43, 226, 0.6);
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.4),
        0 0 40px rgba(30, 144, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: centerPulse 3s ease-in-out infinite;
}

/* По бокам базы */
.slot[data-slot="control-hub"] { 
    width: 120px; 
    height: 80px; 
    top: 50%; 
    left: 25%; 
    transform: translate(-50%, -50%); 
    background: linear-gradient(135deg, rgba(120, 115, 245, 0.3), rgba(79, 195, 247, 0.3));
    border: 2px solid rgba(120, 115, 245, 0.6);
    box-shadow: 
        0 0 15px rgba(120, 115, 245, 0.4),
        0 0 30px rgba(79, 195, 247, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    animation: hubGlow 3s ease-in-out infinite;
}

.slot[data-slot="expansion-hub"] { 
    width: 120px; 
    height: 80px; 
    top: 50%; 
    right: 25%; 
    transform: translate(50%, -50%); 
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3), rgba(120, 115, 245, 0.3));
    border: 2px solid rgba(79, 195, 247, 0.6);
    box-shadow: 
        0 0 15px rgba(79, 195, 247, 0.4),
        0 0 30px rgba(120, 115, 245, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    animation: hubGlow 3s ease-in-out infinite;
}

/* Сверху базы */
.slot[data-slot="transfer"] { 
    width: 100px; 
    height: 60px; 
    top: 25%; 
    left: 35%; 
    transform: translate(-50%, -50%); 
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 110, 199, 0.3));
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 110, 199, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    animation: topGlow 4s ease-in-out infinite;
}

.slot[data-slot="intake"] { 
    width: 100px; 
    height: 60px; 
    top: 25%; 
    right: 35%; 
    transform: translate(50%, -50%); 
    background: linear-gradient(135deg, rgba(255, 110, 199, 0.3), rgba(255, 215, 0, 0.3));
    border: 2px solid rgba(255, 110, 199, 0.6);
    box-shadow: 
        0 0 15px rgba(255, 110, 199, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    animation: topGlow 4s ease-in-out infinite;
}

/* Моторы по углам - Front Left */
.slot[data-slot="fl-motor"] { 
    width: 80px; 
    height: 80px; 
    top: 35%; 
    left: 25%; 
    transform: translate(-50%, -50%); 
    background: linear-gradient(135deg, rgba(255, 150, 100, 0.3), rgba(255, 200, 150, 0.3));
    border: 2px solid rgba(255, 150, 100, 0.6);
    box-shadow: 
        0 0 15px rgba(255, 150, 100, 0.4),
        0 0 30px rgba(255, 200, 150, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Моторы по углам - Front Right */
.slot[data-slot="fr-motor"] { 
    width: 80px; 
    height: 80px; 
    top: 35%; 
    right: 25%; 
    transform: translate(50%, -50%); 
    background: linear-gradient(135deg, rgba(150, 255, 100, 0.3), rgba(200, 255, 150, 0.3));
    border: 2px solid rgba(150, 255, 100, 0.6);
    box-shadow: 
        0 0 15px rgba(150, 255, 100, 0.4),
        0 0 30px rgba(200, 255, 150, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Моторы по углам - Back Left */
.slot[data-slot="bl-motor"] { 
    width: 80px; 
    height: 80px; 
    bottom: 35%; 
    left: 25%; 
    transform: translate(-50%, 50%); 
    background: linear-gradient(135deg, rgba(255, 100, 200, 0.3), rgba(255, 150, 255, 0.3));
    border: 2px solid rgba(255, 100, 200, 0.6);
    box-shadow: 
        0 0 15px rgba(255, 100, 200, 0.4),
        0 0 30px rgba(255, 150, 255, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Моторы по углам - Back Right */
.slot[data-slot="br-motor"] { 
    width: 80px; 
    height: 80px; 
    bottom: 35%; 
    right: 25%; 
    transform: translate(50%, 50%); 
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.3), rgba(150, 255, 255, 0.3));
    border: 2px solid rgba(100, 200, 255, 0.6);
    box-shadow: 
        0 0 15px rgba(100, 200, 255, 0.4),
        0 0 30px rgba(150, 255, 255, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Колёса под моторами - Front Left */
.slot[data-slot="fl-wheel"] { 
    width: 60px; 
    height: 60px; 
    top: 65%; 
    left: 25%; 
    transform: translate(-50%, -50%); 
    background: linear-gradient(135deg, rgba(150, 150, 150, 0.3), rgba(200, 200, 200, 0.3));
    border: 2px solid rgba(150, 150, 150, 0.6);
    box-shadow: 
        0 0 10px rgba(150, 150, 150, 0.4),
        0 0 20px rgba(200, 200, 200, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Колёса под моторами - Front Right */
.slot[data-slot="fr-wheel"] { 
    width: 60px; 
    height: 60px; 
    top: 65%; 
    right: 25%; 
    transform: translate(50%, -50%); 
    background: linear-gradient(135deg, rgba(150, 150, 150, 0.3), rgba(200, 200, 200, 0.3));
    border: 2px solid rgba(150, 150, 150, 0.6);
    box-shadow: 
        0 0 10px rgba(150, 150, 150, 0.4),
        0 0 20px rgba(200, 200, 200, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Колёса под моторами - Back Left */
.slot[data-slot="bl-wheel"] { 
    width: 60px; 
    height: 60px; 
    bottom: 65%; 
    left: 25%; 
    transform: translate(-50%, 50%); 
    background: linear-gradient(135deg, rgba(150, 150, 150, 0.3), rgba(200, 200, 200, 0.3));
    border: 2px solid rgba(150, 150, 150, 0.6);
    box-shadow: 
        0 0 10px rgba(150, 150, 150, 0.4),
        0 0 20px rgba(200, 200, 200, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Колёса под моторами - Back Right */
.slot[data-slot="br-wheel"] { 
    width: 60px; 
    height: 60px; 
    bottom: 65%; 
    right: 25%; 
    transform: translate(50%, 50%); 
    background: linear-gradient(135deg, rgba(150, 150, 150, 0.3), rgba(200, 200, 200, 0.3));
    border: 2px solid rgba(150, 150, 150, 0.6);
    box-shadow: 
        0 0 10px rgba(150, 150, 150, 0.4),
        0 0 20px rgba(200, 200, 200, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Под базой - батарея по центру */
.slot[data-slot="battery"] { 
    width: 120px; 
    height: 60px; 
    bottom: 20%; 
    left: 50%; 
    transform: translate(-50%, 50%); 
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.3), rgba(255, 150, 150, 0.3));
    border: 2px solid rgba(255, 100, 100, 0.6);
    box-shadow: 
        0 0 15px rgba(255, 100, 100, 0.4),
        0 0 30px rgba(255, 150, 150, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Под базой - шутер слева */
.slot[data-slot="shooter"] { 
    width: 100px; 
    height: 60px; 
    bottom: 20%; 
    left: 35%; 
    transform: translate(-50%, 50%); 
    background: linear-gradient(135deg, rgba(150, 255, 100, 0.3), rgba(200, 255, 150, 0.3));
    border: 2px solid rgba(150, 255, 100, 0.6);
    box-shadow: 
        0 0 15px rgba(150, 255, 100, 0.4),
        0 0 30px rgba(200, 255, 150, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Под базой - стена справа */
.slot[data-slot="wall"] { 
    width: 100px; 
    height: 60px; 
    bottom: 20%; 
    right: 35%; 
    transform: translate(50%, 50%); 
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.3), rgba(150, 200, 255, 0.3));
    border: 2px solid rgba(100, 150, 255, 0.6);
    box-shadow: 
        0 0 15px rgba(100, 150, 255, 0.4),
        0 0 30px rgba(150, 200, 255, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.game-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.game-controls .btn {
    min-width: 150px;
}

.game-sidebar-right {
    width: 300px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(30px);
    height: fit-content;
}

.game-sidebar-right h3 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.objectives {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.objective {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
}

.objective-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.objective-progress {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8));
    transition: width 0.5s ease;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.objective-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-size: 1.1rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.objective-check.completed {
    opacity: 1;
}

.robot-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.stat-value {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Details Page Styles */
.details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
}

.details-header {
    text-align: center;
    margin-bottom: 3rem;
}

.details-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filters-section {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: #aaa;
    font-size: 0.9rem;
}

.filter-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.component-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: grab;
}

.component-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.component-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.component-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.component-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.component-info h4 {
    color: #00ffff;
    margin-bottom: 0.3rem;
}

.component-manufacturer {
    color: #888;
    font-size: 0.8rem;
}

.component-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec {
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 0.9rem;
}

.spec-value {
    color: #fff;
    font-weight: bold;
}

/* Guide Page Styles */
.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
}

.guide-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.guide-sidebar {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    height: fit-content;
}

.guide-sidebar h3 {
    color: #00ffff;
    margin-bottom: 1rem;
}

.guide-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guide-link {
    color: #aaa;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.guide-link:hover,
.guide-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.guide-main {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.guide-step {
    display: none;
}

.guide-step.active {
    display: block;
}

.guide-step h2 {
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.step-content {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.step-instructions {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(30px);
}

.step-instructions h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.step-instructions ul {
    list-style: none;
    margin-bottom: 2rem;
}

.step-instructions li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.step-instructions li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.tip-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.faq-section {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(30px);
}

.faq-section h2 {
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.faq-toggle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.8; }
}

@keyframes celestialPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
        opacity: 0.8;
    }
}

@keyframes celestialGlow {
    0%, 100% { 
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.9),
            0 0 60px rgba(255, 255, 255, 0.7),
            0 0 90px rgba(255, 255, 255, 0.5);
    }
    50% { 
        text-shadow: 
            0 0 40px rgba(255, 255, 255, 1),
            0 0 80px rgba(255, 255, 255, 0.8),
            0 0 120px rgba(255, 255, 255, 0.6);
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

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

/* Guide Details Combined Page Styles */
.guide-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
}

.guide-details-header {
    text-align: center;
    margin-bottom: 3rem;
}

.guide-details-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(255, 255, 255, 0.6);
}

.guide-details-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Tab Navigation */
.content-tabs {
    margin-bottom: 3rem;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 20px rgba(255, 255, 255, 1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Floating Space Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.astronaut {
    position: absolute;
    width: 60px;
    height: 80px;
    animation: float 20s infinite ease-in-out;
}

.astronaut-body {
    position: relative;
    width: 100%;
    height: 100%;
}

.helmet {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.helmet-reflection {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.body {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.arm {
    position: absolute;
    width: 15px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.arm.left {
    top: 30px;
    left: -10px;
    transform: rotate(-30deg);
}

.arm.right {
    top: 30px;
    right: -10px;
    transform: rotate(30deg);
}

.leg {
    position: absolute;
    width: 3px;
    height: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.leg.left {
    bottom: -15px;
    left: 8px;
}

.leg.right {
    bottom: -15px;
    right: 8px;
}

.rocket {
    position: absolute;
    width: 40px;
    height: 80px;
    animation: fly 15s infinite linear;
}

.rocket-body {
    position: relative;
    width: 100%;
    height: 100%;
}

.rocket-tip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid rgba(255, 100, 100, 0.8);
}

.rocket-middle {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 35px;
    background: rgba(255, 150, 150, 0.8);
    border-radius: 5px;
}

.window {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: rgba(100, 200, 255, 0.8);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.rocket-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 20px;
}

.flame {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
}

.flame-inner {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 20px;
    background: rgba(255, 255, 100, 0.9);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.2s infinite alternate;
}

.flame-outer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: rgba(255, 150, 50, 0.7);
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    animation: flicker 0.3s infinite alternate-reverse;
}

.satellite {
    position: absolute;
    width: 60px;
    height: 40px;
    animation: orbit 30s infinite linear;
}

.satellite-body {
    position: relative;
    width: 20px;
    height: 15px;
    background: rgba(200, 200, 255, 0.8);
    border-radius: 5px;
    margin: 12px auto;
}

.solar-panel {
    position: absolute;
    width: 20px;
    height: 8px;
    background: rgba(50, 50, 150, 0.8);
    border: 1px solid rgba(100, 100, 255, 0.5);
}

.solar-panel.left {
    top: 6px;
    left: -22px;
    transform: rotate(-10deg);
}

.solar-panel.right {
    top: 6px;
    right: -22px;
    transform: rotate(10deg);
}

.antenna {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.antenna::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -2px;
    width: 6px;
    height: 6px;
    background: rgba(255, 100, 100, 0.8);
    border-radius: 50%;
    animation: blink 2s infinite;
}

.planet {
    position: absolute;
    width: 80px;
    height: 80px;
    animation: drift 25s infinite ease-in-out;
}

.planet-surface {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 200, 150, 0.8), rgba(200, 100, 50, 0.6));
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 200, 150, 0.4);
}

.crater {
    position: absolute;
    background: rgba(150, 75, 25, 0.5);
    border-radius: 50%;
}

.crater {
    width: 15px;
    height: 15px;
    top: 20px;
    left: 25px;
}

.crater.small {
    width: 8px;
    height: 8px;
    top: 40px;
    left: 50px;
}

/* Guide Styles (reused from original) */
.guide-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.guide-sidebar {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(30px);
    height: fit-content;
}

.guide-sidebar h3 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.guide-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guide-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.guide-link:hover,
.guide-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.guide-main {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(30px);
}

.guide-step {
    display: none;
}

.guide-step.active {
    display: block;
}

.guide-step h2 {
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.step-content {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.step-instructions {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(30px);
}

.step-instructions h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.step-instructions ul {
    list-style: none;
    margin-bottom: 2rem;
}

.step-instructions li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.step-instructions li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.tip-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Details Styles (reused from original) */
.filters-section {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.filter-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.component-card {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(30px);
    transition: all 0.3s ease;
    cursor: grab;
}

.component-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.component-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.component-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.component-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.component-info h4 {
    color: #ffffff;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.component-manufacturer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.component-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.spec-value {
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* FAQ Styles */
.faq-section {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(30px);
}

.faq-section h2 {
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.faq-toggle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Floating Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes fly {
    0% { transform: translateX(100vw) translateY(0) rotate(0deg); }
    100% { transform: translateX(-200px) translateY(0) rotate(360deg); }
}

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

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.9); }
    75% { transform: translate(-30px, -10px) scale(1.05); }
}

@keyframes flicker {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes gridPulse {
    0%, 100% { 
        opacity: 0.8;
        transform: scale(1);
        filter: hue-rotate(0deg) brightness(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.01);
        filter: hue-rotate(20deg) brightness(1.2);
    }
}

@keyframes gridFloat {
    0%, 100% { 
        transform: translate(0, 0);
        opacity: 0.6;
    }
    50% { 
        transform: translate(5px, 5px);
        opacity: 1;
    }
}

@keyframes buildAreaGlow {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(255, 110, 199, 0.6),
            0 0 60px rgba(120, 115, 245, 0.5),
            0 0 90px rgba(79, 195, 247, 0.4),
            inset 0 0 40px rgba(255, 255, 255, 0.15);
        filter: hue-rotate(0deg) brightness(1);
    }
    50% { 
        box-shadow: 
            0 0 50px rgba(255, 110, 199, 0.8),
            0 0 100px rgba(120, 115, 245, 0.7),
            0 0 150px rgba(79, 195, 247, 0.6),
            inset 0 0 60px rgba(255, 255, 255, 0.25);
        filter: hue-rotate(30deg) brightness(1.2);
    }
}

@keyframes slotFloat {
    0%, 100% { 
        transform: translateY(0);
    }
    50% { 
        transform: translateY(-2px);
    }
}

@keyframes slotPulse {
    0%, 100% { 
        transform: scale(1.08) rotate(1deg);
    }
    50% { 
        transform: scale(1.12) rotate(-1deg);
    }
}

@keyframes slotGlow {
    0%, 100% { 
        box-shadow: 
            0 0 35px rgba(100, 255, 100, 0.6),
            0 0 70px rgba(255, 255, 100, 0.4),
            inset 0 0 25px rgba(100, 255, 100, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 50px rgba(100, 255, 100, 0.8),
            0 0 100px rgba(255, 255, 100, 0.6),
            inset 0 0 35px rgba(100, 255, 100, 0.3);
    }
}

@keyframes occupiedGlow {
    0%, 100% { 
        box-shadow: 
            0 0 25px rgba(255, 200, 100, 0.4),
            0 0 50px rgba(255, 150, 200, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 35px rgba(255, 200, 100, 0.6),
            0 0 70px rgba(255, 150, 200, 0.4),
            inset 0 0 30px rgba(255, 255, 255, 0.15);
    }
}

@keyframes centerPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 30px rgba(255, 100, 100, 0.4),
            0 0 60px rgba(100, 255, 255, 0.3),
            inset 0 0 25px rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 
            0 0 40px rgba(255, 100, 100, 0.6),
            0 0 80px rgba(100, 255, 255, 0.4),
            inset 0 0 35px rgba(255, 255, 255, 0.15);
    }
}

@keyframes hubGlow {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(100, 255, 100, 0.3),
            inset 0 0 15px rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(100, 255, 100, 0.5),
            inset 0 0 25px rgba(255, 255, 255, 0.15);
    }
}

@keyframes topGlow {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(200, 100, 255, 0.3),
            inset 0 0 15px rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(200, 100, 255, 0.5),
            inset 0 0 25px rgba(255, 255, 255, 0.15);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .game-container {
        flex-direction: column;
    }
    
    .game-sidebar,
    .game-sidebar-right {
        width: 100%;
        max-height: none;
    }
    
    .guide-content {
        grid-template-columns: 1fr;
    }
    
    .step-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .celestial-hero {
        font-size: 3rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .components-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: center;
    }
}
