* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Outfit', sans-serif; background-color: #f5f6fa; color: #2c3e50; }

.portal-header {
    background: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.portal-header.compact { padding: 10px 20px; }
.logo { font-size: 2rem; font-weight: 900; color: #2980b9; }
.search-bar input {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 300px;
}
.back-btn { text-decoration: none; color: #2980b9; font-weight: bold; }
.back-btn:hover { text-decoration: underline; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.game-card.dummy { opacity: 0.7; cursor: not-allowed; }

.thumbnail {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
}
.game-info { padding: 15px; }
.game-info h3 { margin-bottom: 5px; font-size: 1.2rem; }
.game-info p { color: #7f8c8d; font-size: 0.9rem; }

/* Player Page */
.game-player-container {
    width: 100%;
    max-width: 1000px;
    height: 65vh;
    margin: 20px auto;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
#game-frame {
    width: 100%;
    height: 100%;
    border: none;
}
.game-details {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.fullscreen-btn {
    padding: 10px 20px;
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 10px;
}
.fullscreen-btn:hover { background: #3498db; }
