/* style.css */
* { margin:0; padding:0; box-sizing:border-box; }

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: white;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
}

.hub { text-align:center; padding:40px 20px; }

h1 {
    font-size: 56px;
    background: linear-gradient(90deg, #00ffcc, #ff00cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle { font-size:24px; margin-bottom:50px; opacity:0.9; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.game-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.4s;
    border: 2px solid rgba(0,255,204,0.3);
}

.game-card:hover {
    transform: scale(1.08) translateY(-10px);
    border-color: #00ffcc;
    box-shadow: 0 0 30px rgba(0,255,204,0.4);
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.97);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid #00ffcc;
}

.modal-header {
    padding: 15px 25px;
    background: #1a1a2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#closeBtn {
    font-size: 36px;
    background: none;
    border: none;
    color: #ff3366;
    cursor: pointer;
}

#gameContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
}