.game {
    width: 100%;
    height: var(--game-height);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 18px;
}

.game .bg {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: -1;
}

.game .bg img {
    height: 100%;
    filter: blur(7px);
}

.game .img-box {
    width: var(--game-img);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
}

.game .img-box::before {
    padding-top: 100%;
}

.game a {
    padding: 8px 22px;
    background-color: #fff;
    border: 1px solid #fff;
    color: #000;
    transition: .4s;
    font-size: 15px;
}

.game a:hover {
    background-color: #000;
    color: #fff;
}

/* Data Source Notice */
.data-source-notice {
    background: #000;
    padding: 15px 20px;
    text-align: center;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    margin: 0;
}

.data-source-notice p {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Game Info Section */
.game-info {
    margin-top: 30px;
    width: 100%;
}

.info-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.info-section h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.game-description,
.game-instructions {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.game-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.detail-label {
    font-weight: 600;
    color: #333;
    min-width: 100px;
    font-size: 14px;
}

.game-category,
.game-rating,
.game-size {
    color: #666;
    font-size: 14px;
}

.game-rating {
    color: #f39c12;
    font-weight: 600;
}

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

.tag {
    background: #f0f0f0;
    color: #555;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    transition: background 0.3s;
}

.tag:hover {
    background: #333;
    color: #fff;
}

/* Screenshots Section */
.screenshots-section {
    background: #f8f8f8;
}

.screenshots-container {
    text-align: center;
}

.screenshots-loading {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.load-screenshots-btn {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-screenshots-btn:hover {
    background: #fff;
    color: #000;
}

.load-screenshots-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

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

.screenshot-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item:hover::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    opacity: 0.9;
    pointer-events: none;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-item .timestamp {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #e74c3c;
    padding: 10px;
    background: #fdeaea;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 14px;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

.modal-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .data-source-notice p {
        font-size: 14px;
    }
    
    .info-section {
        padding: 15px;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
}