:root {
    --primary-bg: #f8fafc;
    --card-bg: #ffffff;
    --accent-color: #3b82f6;
    --text-main: #1e293b;
}

/* Khung sảnh chính */
.screen {
    /* padding: 2rem; */
    max-width: 1000px;
    margin: 0 auto;
}

.main-title {
    margin-top: 2rem;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 3rem;
}

/* Container chứa card */
.portal-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Style cho từng card game */
.portal-card {
    text-align: center;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.portal-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2);
}

/* Hình ảnh trong card */
.card-img-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.game-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0.5rem 0 1.5rem 0;
}

/* Nút bấm trong card */
.action-button {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive cho mobile */
@media (max-width: 600px) {
    .portal-container { flex-direction: column; align-items: center; }
    .portal-card { width: 90%; }
}

/* Container tổng */
.game-play-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Khu vực điều khiển (Reset, Gợi ý, Undo) */
.bot-control-tools {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.tool-btn {
    background: #e2e8f0;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.tool-btn:hover { background: #cbd5e1; }

/* Nút thoát */
.btn-bottom-match {
    margin-top: 20px;
    padding: 10px 25px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
}