/* Games Page Specific Styles */
.games-page {
    background: linear-gradient(135deg, #07101a 0%, #0a1a2a 100%);
    color: var(--vault-text);
}

.games-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}



/* Hero Section */
.games-hero {
    padding: 120px 0 80px;
    position: relative;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 15px;
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--vault-accent);
}

.page-subtitle {
    font-family: 'Roboto Mono', monospace;
    color: var(--vault-silver);
    margin-bottom: 40px;
    font-size: 1.3rem;
}

.terminal-window {
    background: rgba(5, 15, 25, 0.7);
    border: 1px solid var(--vault-border);
    max-width: 600px;
    margin-top: 40px;
}

.terminal-header {
    background: rgba(10, 26, 42, 0.9);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--vault-border);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.term-btn {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.term-btn.red {
    background: #ff5f56;
}

.term-btn.yellow {
    background: #ffbd2e;
}

.term-btn.green {
    background: #27c93f;
}

.terminal-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--vault-accent);
}

.terminal-content {
    padding: 20px;
    font-family: 'Roboto Mono', monospace;
}

.terminal-text {
    margin: 0 0 10px;
}

.terminal-text.accent {
    color: var(--vault-accent);
}

/* Games Grid */
.games-grid-section {
    padding: 80px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: rgba(10, 26, 42, 0.7);
    border: 1px solid var(--vault-border);
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    border-color: var(--vault-accent);
    transform: translateY(-5px);
}

.game-card.featured {
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--vault-accent);
    color: var(--vault-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    font-weight: bold;
}

.game-header {
    padding: 20px;
    border-bottom: 1px solid var(--vault-border);
    display: flex;
    align-items: center;
}

.game-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--vault-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--vault-accent);
}

.game-title {
    margin: 0;
    font-size: 1.3rem;
}

.game-tag {
    margin-left: auto;
    background: rgba(192, 192, 192, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Roboto Mono', monospace;
}

.game-content {
    padding: 20px;
}

.game-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-stats li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.game-stats i {
    width: 20px;
    color: var(--vault-accent);
    margin-right: 8px;
}

.game-footer {
    padding: 0 20px 20px;
}

.btn-game {
    width: 100%;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--vault-accent);
    color: var(--vault-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-game:hover {
    background: rgba(0, 240, 255, 0.2);
}

/* SEO Block */
.seo-block {
    background: rgba(5, 15, 25, 0.7);
    border: 1px solid var(--vault-border);
    padding: 40px;
    margin: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.seo-title {
    color: var(--vault-accent);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.seo-text {
    line-height: 1.6;
}

.keyword {
    color: var(--vault-accent);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    background: rgba(0, 240, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.seo-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.seo-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.seo-list i {
    color: var(--vault-accent);
    margin-right: 10px;
    width: 20px;
}

/* Обновленный стиль для блока "Beyond Chance — Into Skill" */
.skill-graph {
    width: 100%;
    height: 200px;
    background: rgba(10, 26, 42, 0.5);
    border: 1px solid var(--vault-border);
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.graph-axis {
    display: flex;
    justify-content: space-between;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--vault-silver);
    margin-top: 10px;
}

.graph-line-container {
    position: relative;
    height: 100px;
    width: 100%;
    margin-bottom: 20px;
}

.graph-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff5555, var(--vault-accent));
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.graph-labels {
    position: absolute;
    top: -25px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.graph-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--vault-silver);
}

.graph-label.left {
    color: #ff5555;
}

.graph-label.right {
    color: var(--vault-accent);
}

.graph-marker {
    position: absolute;
    top: -8px;
    width: 16px;
    height: 16px;
    background: var(--vault-accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--vault-accent);
    left: 90%; /* Положение маркера (90% - высокий уровень навыка) */
}

/* CTA Section */
.games-cta {
    text-align: center;
    padding: 60px 0 100px;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--vault-silver);
    margin-bottom: 30px;
}

.btn-large {
    padding: 16px 30px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .seo-block {
        grid-template-columns: 1fr;
    }
    
    .seo-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .games-hero {
        padding: 80px 0 60px;
    }
    
    .terminal-window {
        max-width: 100%;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .seo-block {
        padding: 30px;
    }
}