:root {
    --bg-main: #181A15;
    --bg-surface: #22261E;
    
    --border: #4A5440;        
    --border-color: #4A5440;
    
    --text-main: #B4BBA8;
    --text-heading: #EAEEE3;
    
    --accent: #8FB366
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.back-button-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 0 40px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--bg-surface);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.back-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.back-button {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.back-button:hover {
    color: var(--accent);
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-title {
    font-size: 3.5rem;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

.game-tags-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-playable { background: rgba(46, 160, 67, 0.15); color: #3fb950; border: 1px solid rgba(46, 160, 67, 0.4); }
.tag-prototype { background: rgba(163, 113, 247, 0.15); color: #a371f7; border: 1px solid rgba(163, 113, 247, 0.4); }
.tag-archived { background: rgba(139, 148, 158, 0.15); color: #8b949e; border: 1px solid rgba(139, 148, 158, 0.4); }
.tag-demo { background: rgba(88, 166, 255, 0.15); color: var(--accent); border: 1px solid rgba(88, 166, 255, 0.4); }
.tag-frozen { background: rgba(45, 212, 191, 0.15); color: #2dd4bf; border: 1px solid rgba(45, 212, 191, 0.4); }
.tag-alpha { background: rgba(212, 45, 70, 0.15); color: #e34376; border: 1px solid rgba(212, 45, 106, 0.4); }

.game-description {
    font-size: 1.2rem;
    color: #8b949e;
    margin: 0 0 10px 0;
}

.quick-downloads {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border: none;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #238636;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
    border: 1px solid rgba(240, 246, 252, 0.1);
    cursor: pointer;
}

.download-button:hover { background-color: #2ea043; }

.download-button.disabled {
    background-color: var(--bg-surface);
    color: #8b949e;
    border: 1px solid var(--border);
    cursor: not-allowed;
}

.download-button.disabled:hover { background-color: var(--bg-surface); }

.download-button.github {
    background-color: #21262d;
    border-color: rgba(240, 246, 252, 0.1);
}

.download-button.github:hover { background-color: #30363d; }

.download-button.itchio {
    background-color: #fa5c5c;
    border-color: rgba(250, 92, 92, 0.4);
    color: #ffffff;
}

.download-button.itchio:hover { background-color: #e34b4b; }

.no-downloads-notice {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background-color: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: 8px;
}

.no-downloads-icon {
    font-size: 1.4rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.no-downloads-text {
    display: flex;
    flex-direction: column;
}

.no-downloads-text strong {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
}

.no-downloads-text span {
    font-size: 0.85rem;
    color: #8b949e;
    margin-top: 2px;
}

.hero-media-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
    aspect-ratio: 16 / 9;
}

.hero-media-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button-hero {
    background-color: var(--accent);
    color: #000;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(143, 179, 102, 0.35);
}

.play-button-hero:hover {
    transform: scale(1.05);
    background-color: #A2C876;
    box-shadow: 0 6px 20px rgba(143, 179, 102, 0.5);
}

.game-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.info-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
}

.info-box h3 {
    margin: 0 0 20px 0;
    color: var(--text-heading);
    font-size: 1.5rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
}

.info-box li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
    margin-right: 10px;
}

.info-box li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (max-width: 1024px) {
    .hero-split { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .hero-media-container { 
        order: -1; 
    }
    .game-title {
        font-size: 2.5rem;
    }
    .back-button-container {
        padding: 20px 20px 0 20px;
    }
}
