@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Press+Start+2P&display=swap');

:root {
    --bg-main: #0a0a0f;
    --bg-card: rgba(20, 22, 35, 0.6);
    --border-card: rgba(80, 90, 140, 0.2);
    --border-hover: #5dcaa5;
    
    --text-primary: #f0f0f5;
    --text-secondary: #a0a5ba;
    
    --accent-primary: #5dcaa5;
    --accent-secondary: #ffd166;
    
    --font-heading: 'Press Start 2P', monospace;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #2a2e4a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

.grid-bg {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(93, 202, 165, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 202, 165, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(500px) rotateX(45deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(45deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(45deg) translateY(50px) translateZ(-200px); }
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--border-card);
    border-right: 1px solid var(--border-card);
    min-height: 100vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--accent-primary);
    text-decoration: none;
    margin-bottom: 40px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.back-link:hover {
    transform: translateX(-5px);
    text-decoration: underline;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.icon { 
    font-size: 48px; 
    filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.3));
}

h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 var(--accent-primary);
}

.badge {
    display: inline-block;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 700;
    background: rgba(93, 202, 165, 0.2);
    color: var(--accent-primary);
    margin-bottom: 40px;
    text-transform: uppercase;
}

.badge_download {
    display: inline-block;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 700;
    background: var(--accent-primary);
    color: #000;
    margin-bottom: 40px;
    margin-left: 10px;
    text-transform: uppercase;
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.shot {
    height: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.shot:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

section { margin-bottom: 50px; }

h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-card), transparent);
}

p, li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

ul { padding-left: 24px; }
li { margin-bottom: 8px; }

.controls-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-card);
}

.controls-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

.controls-table tr:last-child td { border-bottom: none; }

.controls-table td:first-child {
    color: var(--accent-secondary);
    font-weight: 600;
    width: 180px;
    background: rgba(0,0,0,0.2);
}

.downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.dl-btn:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: rgba(93, 202, 165, 0.1);
    box-shadow: 0 8px 25px rgba(93, 202, 165, 0.2);
}

.dl-icon { font-size: 32px; }
.dl-sub { font-size: 12px; color: var(--text-secondary); font-weight: 400; }

@media (max-width: 768px) {
    .wrap { padding: 30px 20px 60px; }
    .screenshots { grid-template-columns: 1fr; }
    h1 { font-size: 22px; }
}