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

html, body {
    height: 100%;
}

body {
    background: #1a252f;
    color: #ecf0f1;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* Header */
#game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
    background: #2c3e50;
    border-bottom: 2px solid #34495e;
}

.site-title {
    font-size: 1.2rem;
    font-weight: bold;
}

#back-btn {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

#back-btn:hover {
    background: #2980b9;
}

/* Carousel */
#carousel-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    border: none;
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

#prev-btn {
    left: 20px;
}

#next-btn {
    right: 20px;
}

/* Game Display */
#game-display {
    text-align: center;
    max-width: 500px;
}

#game-thumbnail {
    width: 100%;
    max-width: 450px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #34495e;
    background: #2c3e50;
}

#game-title {
    margin-top: 20px;
    font-size: 2rem;
}

#game-description {
    margin-top: 10px;
    color: #bdc3c7;
    line-height: 1.5;
}

#play-btn {
    margin-top: 25px;
    padding: 15px 50px;
    font-size: 1.2rem;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#play-btn:hover {
    background: #2ecc71;
    transform: scale(1.02);
}

/* Dots */
#dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: #3498db;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Game Container */
#game-container {
    flex: 1;
    display: flex;
    min-height: 0;
}

#game-container iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
}

/* Fade transitions */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}
