/* RESET & BASE STYLE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.portal-container {
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 30px;
}

/* HEADER BANNER STYLE */
.portal-header-banner {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* GRID LAYOUT GAME */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* CARD LAYOUT */
.game-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: row; /* Menyusun ikon di kiri, teks di kanan */
    gap: 15px;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Container pembungkus ikon di dalam kartu */
.card-icon {
    width: 90px;
    height: 90px;
    min-width: 90px; /* Mencegah ikon menyusut */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    border-radius: 15px;
    padding: 8px;
    overflow: hidden;
}

/* Gambar ikon game */
.game-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

/* Bagian teks kartu */
.card-body {
    flex: 1;
}

.card-body h2 {
    font-size: 1.15rem;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.2;
}

.card-body p {
    font-size: 0.8rem;
    color: #616161;
    line-height: 1.35;
    margin-bottom: 12px;
}

/* BUTTONS & BADGES */
.btn-play {
    display: inline-block;
    padding: 8px 18px;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 0 #27ae60;
    transition: 0.1s;
}

.btn-play:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #27ae60;
}

/* Khusus Pilihan Tema Warna Unik Per Game */
.card-pinang:hover { border-color: #e67e22; }
.card-tambang:hover { border-color: #f39c12; }
.card-doraemon:hover { border-color: #3498db; }

/* Status Badge Proyek Selanjutnya */
.badge-status {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f1c40f;
    color: #fff;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: bold;
}

/* Tampilan Kotak Kosong / Segera Hadir */
.card-empty {
    background: #f9f9f9;
    border-style: dashed;
    border-width: 2px;
}

.card-empty .card-icon {
    background: #e0e0e0;
    font-size: 2rem;
}

.badge-status-empty {
    display: inline-block;
    padding: 6px 12px;
    background-color: #95a5a6;
    color: white;
    font-size: 0.75rem;
    border-radius: 20px;
}

/* FOOTER */
.portal-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
    padding-top: 15px;
}

/* Penyesuaian Responsif di Mobile */
@media screen and (max-width: 768px) {
    .game-grid {
        grid-template-columns: 1fr; /* Jadi 1 kolom di layar HP */
        gap: 15px;
    }
    
    .portal-container {
        padding: 15px;
    }

    .portal-header-banner {
        margin-bottom: 15px;
    }
}