:root {
    --bg-color: #050510;
    --text-color: #ffffff;
    --text-sub: #aaaaaa;
    --primary-neon: #a855f7;  /* Фиолетовый */
    --secondary-neon: #3b82f6; /* Синий */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Rajdhani', sans-serif;
    --font-header: 'Orbitron', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

#star-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.star { position: absolute; background: white; border-radius: 50%; opacity: 0.8; animation: twinkle linear infinite; }
@keyframes twinkle { 0% { opacity: 0.2; transform: translateY(0); } 50% { opacity: 1; } 100% { opacity: 0.2; transform: translateY(-20px); } }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.anim-enter { opacity: 0; animation: fadeInUp 0.6s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.container { max-width: 900px; margin: 0 auto; padding: 40px 20px; position: relative; z-index: 2; }

.back-link {
    text-decoration: none; color: var(--text-sub); display: inline-flex; align-items: center; gap: 8px;
    font-size: 1.1rem; transition: 0.3s; margin-bottom: 20px;
}
.back-link:hover { color: var(--primary-neon); transform: translateX(-5px); }

.device-hero { margin-top: 20px; text-align: left; }

.device-title-block { display: flex; align-items: baseline; gap: 15px; flex-wrap: wrap; }
.device-name {
    font-family: var(--font-header); font-size: 3.5rem; margin: 0;
    background: linear-gradient(90deg, #fff, var(--primary-neon));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.codename {
    font-family: 'Courier New', monospace; font-size: 1.2rem; 
    color: var(--text-sub); background: rgba(255,255,255,0.05);
    padding: 2px 8px; border-radius: 4px; border: 1px solid var(--glass-border);
}

.slogan {
    font-size: 1.8rem; font-weight: 300; color: var(--secondary-neon);
    margin: 10px 0 40px 0; font-style: italic; letter-spacing: 1px;
}

.device-layout { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 40px; 
    align-items: center; 
}

.device-visual {
    height: auto;
    min-height: 300px;
    display: flex; 
    justify-content: center; 
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px; 
    position: relative;
}

.device-img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;

    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.4));

    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.device-desc p { font-size: 1.1rem; color: #ddd; margin-bottom: 15px; }

.specs-section { margin-top: 60px; }
.section-title {
    font-family: var(--font-header); font-size: 1.5rem; color: var(--text-color);
    border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; margin-bottom: 20px;
}
.section-title i { color: var(--primary-neon); margin-right: 10px; }

.specs-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px;
}
.spec-item {
    background: var(--glass); border: 1px solid var(--glass-border);
    padding: 15px; border-radius: 10px; display: flex; flex-direction: column;
    backdrop-filter: blur(5px);
}
.spec-item .label { font-size: 0.8rem; color: var(--text-sub); text-transform: uppercase; }
.spec-item .value { font-size: 1.1rem; font-weight: bold; color: var(--secondary-neon); margin-top: 5px; }

.roms-support-section { margin-top: 60px; }
.rom-list { display: flex; flex-direction: column; gap: 20px; }

.rom-block {
    background: linear-gradient(90deg, var(--glass) 0%, rgba(0,0,0,0) 100%);
    border-left: 3px solid var(--primary-neon);
    padding: 25px; border-radius: 0 15px 15px 0;
    transition: 0.3s;
}
.rom-block:hover { transform: translateX(10px); background: rgba(255,255,255,0.05); }

.rom-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.rom-name { font-family: var(--font-header); font-size: 1.5rem; margin: 0; color: white; }
.rom-slogan { font-size: 0.85rem; color: var(--primary-neon); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.rom-icon { font-size: 2rem; color: rgba(255,255,255,0.1); }

.rom-desc { color: var(--text-sub); font-size: 1rem; max-width: 90%; }

.action-area { margin-top: 60px; text-align: center; }
.btn-glow {
    text-decoration: none; background: var(--primary-neon); color: white;
    padding: 15px 40px; border-radius: 50px; font-family: var(--font-header);
    font-weight: bold; letter-spacing: 1px; transition: 0.3s;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); display: inline-block;
}
.btn-glow:hover {
    background: var(--secondary-neon); box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    transform: translateY(-3px);
}

footer { margin-top: 80px; text-align: center; color: var(--text-sub); opacity: 0.5; font-size: 0.9rem; padding-bottom: 20px; }

@media (max-width: 768px) {
    .device-layout { grid-template-columns: 1fr; gap: 30px; }
    .device-name { font-size: 2.5rem; }
    .device-visual { min-height: 250px; }
    .device-img { max-height: 300px; }
}