/* ===== GLOBAL RESET ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;                /* Thay min-height thành height để không tràn */
  overflow: hidden !important; /* KHÔNG cho scrollbar trên html/body - scroll trong .game-container */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  /* Scroll được xử lý trong .game-container, không cần scrollbar trên html/body */
  scrollbar-width: none !important;       /* Firefox */
  -ms-overflow-style: none !important;   /* IE và Edge */
}

/* Ẩn scrollbar cho Chrome, Safari, Edge - với !important */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Ẩn scrollbar cho .game-container - với !important */
.game-container {
  scrollbar-width: none !important;       /* Firefox */
  -ms-overflow-style: none !important;   /* IE và Edge */
}

.game-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Ẩn scrollbar cho TẤT CẢ elements - đảm bảo toàn bộ trang không có scrollbar */
* {
  scrollbar-width: none !important;  /* Firefox */
  -ms-overflow-style: none !important; /* IE và Edge */
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}


/* ===== HEADER (720x60) ===== */
.top-bar {
  width: 720px;
  height: 60px;
  background: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  border-bottom: 2px solid #222;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 248, 255, 0.55);
  letter-spacing: 1.4px;
}

.header-right select {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
}

/* ===== GAME AREA (720x1000) ===== */
#game-container iframe {
  width: 720px;
  height: 1000px;
  border: none;
  overflow: hidden;
  display: block;
  transform: scale(1);
  transform-origin: top center;
  clip-path: inset(0px 0px 0px 0px);/* ẩn 120px ở dưới (footer Loveable) */
}

/* Ẩn thanh cuộn của iframe */
#game-container iframe::-webkit-scrollbar {
  display: none;
}
#game-container {
  width: 720px;
  height: 1000px;
  overflow: hidden;
  position: relative;
}


/* ===== FOOTER (responsive) ===== */
.game-footer {
  width: 100%;
  max-width: 720px;
  min-height: 64px;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ccc;
  border-top: 2px solid #222;
}

.game-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-bottom: 6px;
}

.game-icons button {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.game-icons button:hover {
  transform: scale(1.3);
}

.creator-text {
  font-size: 16px;
  color: #bbb;
  text-align: center;
  line-height: 1.4;
}
/* ===== META INFO (❤️ 🔖 📊 ↗️ Creator …) ===== */
.meta {
  margin: 8px 0 20px;
  color: #ccc;
  font-size: 18px; /* ép chữ và icon lớn hơn */
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.8;
  text-shadow: 0 0 6px rgba(255,255,255,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px; /* khoảng cách giữa icon và chữ */
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

.meta span,
.meta i {
  font-size: 20px; /* ép emoji to bằng Rocket */
  transform: scale(1.2); /* ép phóng to thêm */
  line-height: 1;
  vertical-align: middle;
}
/* ép icon ❤️ 🔖 📊 ↗️ to đều giữa các game */
.meta span,
.meta i {
  display: inline-block;         /* ép emoji thành khối để scale chính xác */
  transform: scale(1.35);        /* 👈 tăng 35% so với mặc định (bằng Rocket) */
  transform-origin: center;      /* phóng to từ tâm */
  vertical-align: middle;
  line-height: 1;
  margin: 0 2px;
}

h2 {
  display: none !important;
}
.game-card {
  transform: scale(1);
  font-size: 100%;
}
.meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-bottom: 6px;
  font-size: 26px;          /* 👈 to bằng icon Rocket */
  color: #fff;
  text-align: center;
}

.meta span,
.meta i {
  font-size: 26px;          /* 👈 ép emoji cùng kích thước */
  vertical-align: middle;
  transform: scale(1);
}
/* ====== FIX CREATOR TEXT SIZE (ĐỒNG BỘ CÁC GAME) ====== */
.creator-text strong,
.creator-text {
  font-size: 18px !important;     /* 👈 to bằng các game dưới */
  color: #ccc !important;
  text-align: center;
  letter-spacing: 0.3px;
  line-height: 1.6;
  font-weight: 500;
}
/* ===== GIÃN CÁCH CÁC GAME TRÊN TRANG CHÍNH ===== */
.game-card {
  margin-bottom: 60px; /* tăng khoảng cách giữa các game */
}
