:root {
    --bg-dark: #0b0214;
    --neon-pink: #ff007f;
    --neon-cyan: #00f3ff;
    --neon-purple: #b026ff;
    --sunset-orange: #ff7b00;
    --sunset-yellow: #ffd000;
    --card-bg: rgba(16, 5, 34, 0.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: #fff;
    min-height: 100vh;
    padding-bottom: 115px;
    overflow-x: hidden;
}

.vice-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #090118 0%, #2d0645 38%, #a81c68 70%, #ff6a00 100%);
    overflow: hidden;
    pointer-events: none;
}

.stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 15% 12%, #fff, transparent),
        radial-gradient(2px 2px at 35% 22%, var(--neon-cyan), transparent),
        radial-gradient(2px 2px at 65% 10%, #fff, transparent),
        radial-gradient(2px 2px at 85% 28%, var(--neon-pink), transparent),
        radial-gradient(1.5px 1.5px at 50% 18%, #fff, transparent);
    opacity: 0.85;
}

.sun {
    position: absolute;
    bottom: 24%;
    left: 50%;
    transform: translateX(-50%);
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--sunset-yellow) 0%, var(--sunset-orange) 48%, var(--neon-pink) 100%);
    box-shadow: 0 0 90px rgba(255, 0, 127, 0.9), 0 0 150px rgba(255, 123, 0, 0.6);
    overflow: hidden;
}

.sun-stripes {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 55%;
    background: repeating-linear-gradient(
        0deg,
        rgba(11, 2, 20, 0.88) 0px,
        rgba(11, 2, 20, 0.88) 6px,
        transparent 6px,
        transparent 16px
    );
}

@keyframes gridDrive {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

.grid-floor {
    position: absolute;
    bottom: 0;
    width: 240%;
    height: 28%;
    left: -70%;
    background-image: 
        linear-gradient(to right, rgba(0, 243, 255, 0.6) 1.5px, transparent 1.5px),
        linear-gradient(to bottom, rgba(255, 0, 127, 0.6) 1.5px, transparent 1.5px);
    background-size: 50px 50px;
    transform: perspective(260px) rotateX(62deg);
    background-color: #070110;
    animation: gridDrive 1.3s linear infinite;
    box-shadow: 0 -10px 45px rgba(255, 0, 127, 0.7);
}

.skyline {
    position: absolute;
    bottom: 22%;
    width: 100%;
    height: 240px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4%;
    background: rgba(10, 2, 20, 0.95);
    border-bottom: 2px solid var(--neon-pink);
    box-shadow: 0 4px 25px rgba(255, 0, 127, 0.35);
    position: sticky;
    top: 0;
    z-index: 150;
    backdrop-filter: blur(12px);
    gap: 10px;
}

.logo {
    font-weight: 900;
    font-style: italic;
    font-size: 1.6rem;
    letter-spacing: 2px;
    cursor: pointer;
    line-height: 1;
    text-shadow: 2px 2px 0 var(--neon-pink), 0 0 15px rgba(255, 0, 127, 0.7);
}

.logo span { color: var(--neon-cyan); text-shadow: 2px 2px 0 var(--neon-purple); }

.logo-sub {
    display: block;
    font-style: normal;
    font-size: 0.52rem;
    letter-spacing: 2.5px;
    color: var(--sunset-yellow);
    margin-top: 3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 3;
}

.hot-header-btn {
    background: linear-gradient(45deg, var(--neon-pink), var(--sunset-orange));
    border: 1px solid #fff;
    color: #fff;
    padding: 7px 11px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.6);
    transition: 0.2s;
    white-space: nowrap;
}

.hot-header-btn.cyan-hot {
    background: linear-gradient(45deg, #0099ff, var(--neon-cyan));
    color: #05010d;
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.6);
}

.hot-header-btn:hover { transform: scale(1.05); }

.cart-trigger {
    background: rgba(255, 0, 127, 0.25);
    border: 1px solid var(--neon-pink);
    color: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    order: 2;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 243, 255, 0.25);
}

.group-title {
    font-size: 0.58rem;
    text-transform: uppercase;
    color: var(--neon-cyan);
    font-weight: 800;
    margin-right: 3px;
}

.nav-links button {
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.76rem;
    cursor: pointer;
    padding: 5px 6px;
    border-radius: 5px;
    transition: 0.2s;
    text-align: left;
}

.nav-links button:hover,
.nav-links button.active-link {
    color: var(--sunset-yellow);
    background: rgba(255, 0, 127, 0.35);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

.badge {
    background: var(--neon-pink);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.72rem;
}

.burger {
    display: none;
    background: none;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 1.4rem;
    padding: 4px 9px;
    border-radius: 6px;
    cursor: pointer;
}

/* Баннер на главном экране */
.hero-gta-banner {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.25), rgba(0, 243, 255, 0.18));
    border: 2px solid var(--neon-pink);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.3);
    backdrop-filter: blur(10px);
}

/* Вкладка Коды ГТА */
.cheats-panel {
    background: var(--card-bg);
    border: 1px solid var(--neon-cyan);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
}

.pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.2s;
}

.pill-btn:hover { border-color: var(--neon-pink); }

.pill-btn.active-pill {
    background: linear-gradient(45deg, var(--neon-pink), var(--sunset-orange));
    border-color: #fff;
    box-shadow: 0 0 14px var(--neon-pink);
}

.pill-btn.active-pill-cyan {
    background: var(--neon-cyan);
    color: #070112;
    border-color: #fff;
    box-shadow: 0 0 14px var(--neon-cyan);
}

.cheats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
}

.cheat-card {
    background: rgba(16, 5, 34, 0.88);
    border: 1px solid rgba(0, 243, 255, 0.35);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}

.cheat-card:hover {
    border-color: var(--sunset-yellow);
    transform: translateY(-2px);
}

.cheat-code {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.78rem;
    color: var(--sunset-yellow);
    line-height: 1.5;
    margin-bottom: 6px;
    word-break: break-word;
}

.cheat-desc {
    font-size: 0.88rem;
    color: #e2d9f3;
}

.copy-code-btn {
    background: rgba(0, 243, 255, 0.15);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.copy-code-btn:hover {
    background: var(--neon-cyan);
    color: #000;
}

/* Корзина */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: rgba(11, 2, 20, 0.98);
    border-left: 2px solid var(--neon-cyan);
    z-index: 300;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
}

.cart-drawer.open { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-pink);
    padding-bottom: 12px;
}

.close-cart {
    background: none;
    border: none;
    color: var(--neon-pink);
    font-size: 1.4rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    background: rgba(255, 255, 255, 0.06);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 243, 255, 0.25);
}

.remove-item {
    background: none;
    border: none;
    color: var(--neon-pink);
    cursor: pointer;
    font-weight: 900;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--sunset-yellow);
    margin-bottom: 10px;
}

.neon-input {
    width: 100%;
    padding: 10px;
    background: #1a0633;
    border: 1px solid var(--neon-cyan);
    color: #fff;
    border-radius: 6px;
    margin-bottom: 8px;
    font-family: inherit;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1200px;
    margin: 26px auto;
    padding: 0 20px;
    animation: fadeSlideUp 0.35s ease;
}

.page-title {
    font-size: 2.1rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff 0%, var(--neon-cyan) 50%, var(--neon-pink) 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
filter: drop-shadow(3px 3px 0px rgba(255, 0, 127, 0.7));
}
.grid-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 22px;
}
.card {
background: var(--card-bg);
border: 1px solid rgba(0, 243, 255, 0.45);
border-radius: 14px;
padding: 20px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
backdrop-filter: blur(10px);
transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card:hover {
transform: translateY(-5px);
border-color: var(--neon-pink);
box-shadow: 0 10px 30px rgba(255, 0, 127, 0.4), 0 0 15px rgba(0, 243, 255, 0.3);
}
.card-cover {
height: 120px;
border-radius: 10px;
margin-bottom: 14px;
display: flex;
align-items: flex-end;
padding: 12px;
font-weight: 900;
font-size: 0.75rem;
letter-spacing: 1.5px;
text-transform: uppercase;
border: 1px solid rgba(255, 255, 255, 0.25);
}
.cover-1 { background: linear-gradient(135deg, #ff007f 0%, #3b0944 60%, #00f3ff 100%); }
.cover-2 { background: linear-gradient(135deg, #ff7b00 0%, #9e1f63 55%, #120428 100%); }
.cover-3 { background: linear-gradient(135deg, #00f3ff 0%, #2d0645 65%, #ff007f 100%); }
.card h3 { color: var(--sunset-yellow); margin-bottom: 8px; font-size: 1.2rem; }
.card p { color: #e2d9f3; line-height: 1.5; font-size: 0.92rem; }
.neon-btn {
background: linear-gradient(45deg, var(--neon-pink), var(--sunset-orange));
border: none;
color: #fff;
font-weight: 800;
padding: 11px 18px;
border-radius: 8px;
cursor: pointer;
margin-top: 14px;
text-transform: uppercase;
letter-spacing: 0.5px;
transition: transform 0.15s, box-shadow 0.15s;
}
.neon-btn:hover {
transform: translateY(-2px);
box-shadow: 0 0 18px var(--neon-pink);
}
.progress-wrap {
background: #1d0836;
border-radius: 10px;
height: 18px;
margin: 14px 0;
overflow: hidden;
border: 1px solid var(--neon-cyan);
}
.progress-fill {
background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--sunset-yellow));
height: 100%;
transition: width 0.4s ease;
}
.game-canvas {
width: 100%;
max-width: 320px;
height: 280px;
background: #070112;
border: 2px solid var(--neon-cyan);
border-radius: 10px;
display: block;
margin: 12px auto;
box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}
.game-controls {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 8px;
}
.synth-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: rgba(9, 1, 18, 0.96);
border-top: 2px solid var(--neon-cyan);
box-shadow: 0 -4px 25px rgba(0, 243, 255, 0.25);
padding: 10px 5%;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 200;
flex-wrap: wrap;
gap: 10px;
}
.synth-tag {
font-family: 'Press Start 2P', monospace;
font-size: 0.6rem;
color: var(--neon-pink);
display: block;
margin-bottom: 4px;
}
.track-select {
background: transparent;
color: var(--sunset-yellow);
border: none;
font-family: 'Montserrat', sans-serif;
font-weight: 900;
font-size: 0.9rem;
cursor: pointer;
outline: none;
}
.track-select option {
background: #0b0214;
color: #fff;
}
.equalizer {
display: flex;
align-items: flex-end;
gap: 4px;
height: 28px;
padding: 0 10px;
}
.equalizer span {
width: 5px;
height: 4px;
background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
border-radius: 2px;
transition: height 0.08s ease;
box-shadow: 0 0 8px var(--neon-cyan);
}
.synth-controls {
display: flex;
align-items: center;
gap: 10px;
}
.synth-controls select {
background: #1a0633;
color: var(--neon-cyan);
border: 1px solid var(--neon-cyan);
padding: 8px;
border-radius: 6px;
}
@media (max-width: 1180px) {
.burger { display: block; }
.nav-links {
display: none;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 12px;
position: absolute;
top: 64px;
left: 0;
right: 0;
background: rgba(11, 2, 20, 0.98);
padding: 18px 5%;
border-bottom: 2px solid var(--neon-pink);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9);
max-height: 75vh;
overflow-y: auto;
}
.nav-links.active { display: grid; }
.nav-group {
flex-direction: column;
align-items: stretch;
padding: 10px;
}
.group-title {
margin-bottom: 6px;
padding-bottom: 4px;
border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}
.synth-bar { justify-content: center; text-align: center; }
.page-title { font-size: 1.65rem; }
}
/* Навигация без JS — 100% срабатывание кликов */
.tab-sec { display: none; }
.tab-sec:target { display: block; animation: fadeSlideUp 0.3s ease; }
body:not(:has(.tab-sec:target)) #portfolio { display: block; }
.nav-links a, .hot-header-btn, .logo { text-decoration: none; }
.nav-links a {
    color: #fff;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 5px 6px;
    border-radius: 5px;
    transition: 0.2s;
    display: inline-block;
}
.nav-links a:hover { color: var(--sunset-yellow); background: rgba(255, 0, 127, 0.35); }