/* Game Page Specific Styles */

.game-page {
    background-color: var(--darker-bg);
}

.game-header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    border-bottom: 2px solid var(--primary-color);
}

.game-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-description {
    font-size: 1.2rem;
    color: var(--gray-text);
}

/* Game Player */
.game-player-container {
    background-color: #000;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.game-player {
    width: 100%;
    max-width: 1280px;
    position: relative;
    background-color: #000;
}

.game-player iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    border-radius: 0;
    outline: none;
}

.loading-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 1.5rem;
    z-index: 1;
}

/* Game Info Section */
.game-info-section {
    padding: 3rem 0;
}

.game-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.game-about h2,
.game-controls h2,
.game-tips h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.game-about h3 {
    color: var(--light-text);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
}

.game-about p,
.game-about ul,
.game-tips ul {
    color: var(--gray-text);
    line-height: 1.8;
}

.game-about ul,
.game-tips ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.game-about li,
.game-tips li {
    margin-bottom: 0.5rem;
}

/* Controls Grid */
.controls-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.control-item {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--primary-color);
}

.key {
    background-color: var(--darker-bg);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.action {
    color: var(--gray-text);
    font-weight: 500;
}

/* Game Tips */
.game-tips {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

.game-tips strong {
    color: var(--primary-color);
}

/* Game License */
.game-license {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--gray-text);
    margin-top: 2rem;
}

.game-license h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.game-license p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.game-license strong {
    color: var(--light-text);
}

.game-license details {
    margin-top: 1rem;
}

.game-license summary {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem;
    user-select: none;
}

.game-license summary:hover {
    color: var(--accent);
}

.license-text {
    background-color: var(--darker-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid var(--primary-color);
}

.license-text p {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-player {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2rem;
    }

    .game-description {
        font-size: 1rem;
    }

    .game-player {
        padding: 0 0.5rem;
    }

    .game-about h2,
    .game-controls h2,
    .game-tips h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .game-header {
        padding: 1.5rem 0;
    }

    .game-header h1 {
        font-size: 1.5rem;
    }

    .control-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
