* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

html,
body {
  height: 100%;
}

body {
  background: #0b0f1a;
  color: #fff;
  max-width: 100%;
  overflow-x: hidden;
    padding-top: 70px;
}

body > * {
  position: relative;
  z-index: 5;
}
.site-header {
  position: relative;
  z-index: 2100;
  padding: 18px 24px 10px;
}
.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  min-height: 76px;
  margin: 0 auto;
}
.site-header .site-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.site-header .site-logo img {
  display: block;
  width: clamp(170px, 17vw, 282px);
  height: auto;
}
.site-header .site-search {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: min(420px, 42vw);
  transform: translate(-50%, -50%);
}
.site-header .site-search input {
  width: 100%;
  height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  outline: none;
  color: #f8fafc;
  background: rgba(7, 8, 10, 0.76);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 15px;
}
.site-header .site-search input::placeholder {
  color: rgba(226, 232, 240, 0.58);
}
.site-header .site-search input:focus {
  border-color: rgba(111, 255, 35, 0.68);
  background: rgba(5, 7, 10, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(111, 255, 35, 0.12);
}
.site-header .site-search-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header .site-search .live-search-results {
  top: calc(100% + 10px);
  border-radius: 16px;
  background: rgba(5, 7, 12, 0.96);
}
.site-header .menu-container {
  position: static;
  z-index: 6;
  margin-left: auto;
}
.site-header .menu-icon,
.site-header .close-icon {
  width: 46px;
  height: 46px;
}
@media only screen and (max-width: 767px) {
  .site-header {
    padding: 14px 14px 8px;
  }
  .site-header-inner {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 0;
  }
  .site-header .site-logo img {
    width: 176px;
  }
  .site-header .site-search {
    position: relative;
    top: auto;
    left: auto;
    order: 3;
    width: 100%;
    transform: none;
  }
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 40px;
  background: #4904d6;
  clip-path: circle(0% at var(--menu-x, 100%) var(--menu-y, 0));
  transition: clip-path 0.5s ease-in-out;
}
.menu-backdrop.show {
  display: flex;
  clip-path: circle(150% at var(--menu-x, 100%) var(--menu-y, 0));
}
.menu-backdrop.hide {
  display: flex;
  clip-path: circle(0% at var(--menu-x, 100%) var(--menu-y, 0));
}
.menu-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(100%, 520px);
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
  scrollbar-width: none;
}
.menu-items::-webkit-scrollbar {
  display: none;
}
.menu-items a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
}
.close-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  font: 400 36px/1 Arial, sans-serif;
  cursor: pointer;
}
.close-icon:hover,
.close-icon:focus-visible {
  color: #4904d6;
  background: #fff;
  outline: none;
}
.container {
  margin: 0 auto;
  padding: 0 10px;
}
/* ===== profile ===== */
.file-name-wrapper {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    text-align: center;
}
.profile-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: start;
}

.profile-card {
  background: #111827;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
}

.avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #462996, #2c115f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 15px;
  color: #fff;
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.profile-stats div {
  text-align: center;
}

.profile-stats strong {
  display: block;
  font-size: 20px;
  color: #fff;
}

.profile-stats span {
  font-size: 12px;
  color: #9ca3af;
}

.profile-activity {
  background: #111827;
  padding: 25px;
  border-radius: 15px;
}
.profile-right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.comment-item {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-item strong {
  color: #462996;
}

.comment-item p {
  margin: 5px 0 0;
  color: #ddd;
}
.avatar-wrapper {
    text-align: center;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffcc00;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ffcc00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
}
/* ===== USER AREA (COMPACT) ===== */

.user-area {
  margin-left: 1px;
  display: flex;
  align-items: center;
}

/* wrapper */
.user-dropdown {
  position: relative;
}

.user-name {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 13px;       
  font-weight: 500;
  color: #fff;
  padding: 2px 4px;        
  border-radius: 6px;
  transition: background 0.15s ease;
}

.user-name svg {
  width: 14px;            
  height: 14px;
}

.user-name:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #462996;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  min-width: 140px;        
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;

  z-index: 99999;
}

.user-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;     
  font-size: 13px;         
  text-decoration: none;
  color: #fff;
  transition: background 0.15s ease;
}

.dropdown-menu a:hover {
  background: #2c115f;
}

.login-btn {
  padding: 5px 10px;
  font-size: 13px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;

  transition: background 0.3s ease, color 0.3s ease;
}

.login-btn:hover {
  background: #462996;
}
.game-link {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  color: #a78bfa; /* tím sáng */
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

.game-link:hover {
  color: #ffffff;
}
.game-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #a78bfa;
  transition: width 0.25s ease;
}
.game-link:hover::after {
  width: 100%;
}
.rating {
  margin-top: 5px;
}

.stars {
  display: flex;
  gap: 4px;
}

.star {
  width: 18px;
  height: 18px;
  fill: #374151; /* màu sao rỗng */
  transition: 0.2s;
}

.star.active {
  fill: #facc15; /* vàng */
}
/* ================= AUTH PAGE ================= */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 40px 35px;
  border-radius: 20px;

  background: linear-gradient(
    145deg,
    rgba(20, 20, 35, 0.95),
    rgba(10, 10, 20, 0.95)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.15),
    0 0 80px rgba(124, 58, 237, 0.15);

  backdrop-filter: blur(10px);
  animation: authFadeIn 0.5s ease;
}

.auth-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: 600;
  letter-spacing: 1px;

  background: linear-gradient(90deg, #00f5ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-error {
  background: rgba(255, 0, 80, 0.1);
  border: 1px solid #ff4d6d;
  color: #ff4d6d;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);

  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;

  transition: 0.25s ease;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:focus {
  outline: none;
  border-color: #00f5ff;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.6);
}

.auth-btn {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;

  background: linear-gradient(135deg, #00f5ff, #7c3aed);
  color: #fff;

  transition: 0.3s ease;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

.auth-switch {
  margin-top: 20px;
  font-size: 13px;
  text-align: center;
  color: #94a3b8;
}

.auth-switch a {
  color: #38bdf8;
  text-decoration: none;
  transition: 0.2s;
}
.avatar-form {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.avatar-form input[type="file"] {
    display: none;
}

/* Nút chọn file */
.custom-file-upload {
    padding: 5px 10px;
    background: #1e2a38;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    border: 1px solid #2f3f52;
}

.custom-file-upload:hover {
    background: #2f3f52;
}

/* Nút Change Avatar */
.btn-avatar {
  padding: 5px 10px;
    background: #ffc107;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-avatar:hover {
    background: #ffb300;
}
.auth-switch a:hover {
  color: #00f5ff;
}

/* Animation */
@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .auth-container {
    padding: 30px 20px;
  }

  .auth-title {
    font-size: 22px;
  }
}
/* Outline Button */
.auth-btn-outline {
  display: block;
  text-align: center;
  margin-top: 15px;

  background: transparent;
  border: 1px solid #7c3aed;
  color: #7c3aed;
  text-decoration: none;
}

.auth-btn-outline:hover {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
}
/* ===== SEARCH HEADER ===== */
.search-header {
    position: fixed;
  top: 0;
  
left: 0;
  width: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: linear-gradient(90deg, #020617, #0f172a);
  border-bottom: 1px solid #1e293b;
}

.logo-mini {
  font-size: 26px;
  cursor: pointer;
}

/* SEARCH BOX */
.search-box {
  flex: 1;
  display: flex;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: visible;
}

.search-box input {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
}

.search-box input::placeholder {
  color: #64748b;
}

.search-box button {
  width: 56px;
  background: #38bdf8;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #020617;
  transition: 0.2s;
}

.search-box button:hover {
  background: #0ea5e9;
}

.logo {
  font-size: 26px;
  font-weight: 800;
}
.logo span {
  color: #38bdf8;
}
.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #cbd5f5;
}
.nav a:hover {
  color: #38bdf8;
}

/* ===== CATEGORY BAR ===== */

.category-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #222;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}

.category-card:hover {
  background: #333;
}

.category-card.active {
  background: #ff9800;
  color: #000;
}

.category-emoji {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ===== QUICK GAME IMAGE STRIP ===== */
.quick-games {
  padding: 20px;
}

.quick-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.quick-list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.quick-card-img {
  flex: 0 0 auto;
  width: 160px;
  background: #020617;
  border-radius: 12px;
  border: 1px solid #1e293b;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}

.quick-card-img img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.quick-card-img span {
  display: block;
  padding: 8px;
  font-size: 13px;
  text-align: center;
  color: #cbd5f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-card-img:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
}

.quick-card-img:hover span {
  color: #38bdf8;
  font-weight: 600;
}
.quick-games.two-col {
  display: grid;
  grid-template-columns: auto auto; /* fit theo nội dung */
  gap: 24px;

  justify-content: center; /* ⭐ căn giữa 2 cột */
  align-items: start;

  padding: 20px;
}
.quick-games .quick-list {
  display: inline-flex;
  gap: 14px;
}

.quick-games .quick-col {
  width: fit-content;
  max-width: 100%;
}

.quick-col {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 16px;
}
.quick-games > .quick-col {
  padding: 2px;
  border-radius: 12px;
}

/* MORE CARD */
.quick-card-img.more {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90px;
  background: linear-gradient(135deg, #020617, #0f172a);
}
.quick-card-img.more span {
  font-size: 14px;
  color: #94a3b8;
}
.quick-list .quick-card-img {
  display: block;
}
/* Mặc định: mọi màn hình ≤ 24" → 4 game */
.quick-list .quick-card-img:nth-child(n + 5) {
  display: none;
}
/* ================= HOT GAMES ================= */
.hot-section h2 {
  color: #e74c3c;
}

.game-card.hot {
  position: relative;
}

.hot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 2;
}

/* ================= CATEGORY PAGE ONLY ================= */

.category-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* GRID 10 GAME / ROW */
.category-page .games-grid {
  padding: 0 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* GAME CARD (CATEGORY ONLY) */
.category-page .game-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}

.category-page .game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  border-color: #38bdf8;
}

.category-page .game-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.category-page .game-card:hover img {
  filter: brightness(0.75);
}

/* TITLE OVERLAY */
.category-page .game-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  opacity: 0;
  transition: 0.25s;
}

.category-page .game-card:hover .game-title {
  opacity: 1;
}

/* ================= CATEGORY DESCRIPTION BOX ================= */

.category-page .category-info {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto 0;
}

.category-page .game-description-container {
  background: linear-gradient(135deg, #020617, #0f172a);
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 30px 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.category-page .game-description {
  color: #cbd5f5;
  font-size: 15px;
  line-height: 1.3;
}
.hot-section.category-page .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 180px);
  gap: 16px;
  justify-content: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ================= MOOD GRID ================= */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 150px);
  gap: 50px;
  justify-content: center;
}

.mood-item {
  padding: 20px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #12141c, #1c1f2b);
  font-size: 18px;
  cursor: pointer;
  transition: 0.35s;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mood-item img {
  width: 48px;
  height: 48px;
}

.mood-grid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mood-grid div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mood-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.4);
}
/* ================= NAVIGATION BUTTONS ================= */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 60px;
  font-size: 26px;
  cursor: pointer;
  opacity: 0;
  transition: 0.25s;
  z-index: 5;
}

.nav-btn.left {
  left: -10px;
}

.nav-btn.right {
  right: -10px;
}

.game-row-wrapper:hover .nav-btn {
  opacity: 1;
}

.game-row-wrapper {
  position: relative;
}
/* ================= SECTION HEADERS ================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
}

.view-more {
  font-size: 14px;
  color: #8b8bff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139,139,255,0.45);
  display: inline-flex;
  align-items: center;

  transition:
     background-color 0.15s cubic-bezier(.4,0,.2,1),
  color 0.15s cubic-bezier(.4,0,.2,1),
  transform 0.12s cubic-bezier(.4,0,.2,1),
  box-shadow 0.12s cubic-bezier(.4,0,.2,1);
}

.view-more:hover {
  color: #fff;
  background: #8b8bff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139,139,255,0.45);
}

.view-more:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(139,139,255,0.4);
}
/* ===== GAME ===== */
.game-wrapper {
  display: block;
  gap: 20px;
  padding: 20px;
} /* ================= GAMES GRID ================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.game-grid.horizontal {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.game-grid.horizontal::-webkit-scrollbar {
  display: none;
}

.game-grid.horizontal .game-card {
  min-width: 250px;
}

/* ================= GAME CARDS ================= */
.game-card {
  background: #1a1a24;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  width: 180px;
  transition: 0.3s ease;
  box-shadow: 0 0 0 1px #242436;
}

.games-grid .game-card {
  border-radius: 14px;
  transition: box-shadow 0.3s ease;
}

.games-grid .game-card:hover {
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

.games-grid .game-card a {
  text-decoration: none;
  color: #fff;
  display: block;
}

.game-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.05) saturate(1.05);
}

.games-grid .game-card img {
  height: 100px;
}

.game-card:hover img {
  filter: brightness(0.7);
}

.game-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 10px 10px 2px;
  text-align: center;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  opacity: 0;
}

.game-card:hover .game-title {
  opacity: 1;
}

.games-grid .game-card h3 {
  margin: 0;
  padding: 12px 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  color: #e5e7eb;
}
/* ================= static page ================= */

.static-page-content {
  max-width: 1200px;
  margin: 24px auto;
  background: #111;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 0 0 1px #222, 0 8px 24px rgba(0,0,0,.6);
}
.static-page-content a {
  color: #4da3ff;
  text-decoration: none;
}

.static-page-content a:hover {
  text-decoration: underline;
}

.static-page-content ul,
.static-page-content ol {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
}

/* ================= BREADCRUMB ================= */


.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
margin-top:-15px;
  padding: 10px 14px;
  margin-bottom: 16px;

  list-style: none;
  font-size: 13px;
  background: linear-gradient(180deg, #0f172a, #020617);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #1e293b;
}

/* Item */
.breadcrumb-item {
  color: #94a3b8;
  font-weight: 500;
}

/* Link */
.breadcrumb-item a {
  color: #38bdf8;
  text-decoration: none;
  transition: color .2s ease, text-shadow .2s ease;
}

.breadcrumb-item a:hover {
  color: #7dd3fc;
  text-shadow: 0 0 8px rgba(56,189,248,.6);
}

/* Separator */
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin: 0 6px;
  color: #334155;
}

/* Active */
.breadcrumb-item.active {
  color: #f8fafc;
  font-weight: 600;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}
/* ================= CATEGORY DESCRIPTION BOX ================= */

.category-info {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto 0;
}

.game-description-container {
  background: linear-gradient(135deg, #020617, #0f172a);
  border: 1px solid #1e293b;
  border-radius: 18px;
  
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.game-description {
  color: #cbd5f5;
  font-size: 15px;
  line-height: 1.3;
}

/* TYPOGRAPHY INSIDE DESCRIPTION */
.game-description h2,
.game-description h3 {
  color: #38bdf8;
  margin: 22px 0 12px;
}

.game-description p {
  margin-bottom: 16px;
}
/* ================= SEARCH PAGE GRID ================= */

.search-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* SEARCH TITLE */
.search-page h2 {
  margin: 20px 0 24px;
  font-size: 26px;
  font-weight: 800;
  color: #38bdf8;
  text-align: center;
}
.search-box {
  position: relative;
  z-index: 9999;
  overflow: visible; 
}
.live-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  margin-top: 8px;
  z-index: 9999;
  max-height: 360px;
 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  
}
.live-search-results:empty {
  display: none;
}
.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #e5e7eb;
  transition: background 0.2s ease;
}

.live-search-item:hover {
  background: #0f172a;
}

/* ẢNH GAME */
.live-search-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #020617;
}

/* TÊN GAME */
.live-search-item span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* KHÔNG TÌM THẤY */
.live-search-empty {
  padding: 14px;
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
  
}

/* SCROLL ĐẸP */
.live-search-results::-webkit-scrollbar {
  width: 6px;
}
.live-search-results::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

/* GRID 10 GAME / ROW */
/* ================= SEARCH GRID FIX CENTER ================= */

.search-page .games-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, 140px);

  gap: 16px;

  justify-content: center;

  width: 100%;
  max-width: 1600px;
  margin: 0 auto;

  padding: 0 24px;
  box-sizing: border-box;
}

/* GAME CARD */
.search-page .game-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}

.search-page .game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  border-color: #38bdf8;
}

/* IMAGE */
.search-page .game-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.search-page .game-card:hover img {
  filter: brightness(0.75);
}

/* TITLE */
.search-page .game-card h3 {
  margin: 0;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-maintenance {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.maintenance-content {
  text-align: center;
  color: #e5e7eb;
  max-width: 320px;
}

.maintenance-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.maintenance-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #facc15;
}

.maintenance-content p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.4;
}


/* ===== FOOTER ===== */
.footer-bg {
  background: linear-gradient(180deg, #020617, #020617 60%, #000);
  border-top: 1px solid #1e293b;
  padding: 40px 20px 24px;
  margin-top: 40px;
}

/* GRID LAYOUT */
.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* ===== SOCIAL ===== */
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #020617;
  border: 1px solid #1e293b;
  transition: 0.3s;
}

.footer-social img {
  filter: brightness(0.85);
  transition: 0.3s;
}

.footer-social a:hover {
  background: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.footer-social a:hover img {
  filter: brightness(1) invert(1);
}

/* ===== CENTER ===== */
.footer-center {
  text-align: center;
}

.footer-center img {
  height: 42px;
  margin-bottom: 10px;
  transition: 0.3s;
}

.footer-center img:hover {
  transform: scale(1.05);
}

.game-credit {
  font-size: 13px;
  color: #94a3b8;
}

.game-credit a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.game-credit a:hover {
  text-decoration: underline;
}

/* ===== LINKS ===== */
.footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
  transition: 0.25s;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-links .dot {
  color: #475569;
  user-select: none;
}

/* ===== DIVIDER ===== */
.hr-dash {
  max-width: 1200px;
  margin: 26px auto 14px;
  border: none;
  border-top: 1px dashed #1e293b;
}

/* ===== COPYRIGHT ===== */
.footer-copy {
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* Sao nhỏ – xa */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(1px 1px at 10% 20%, #fff, transparent),
    radial-gradient(1px 1px at 30% 80%, #fff, transparent),
    radial-gradient(1px 1px at 50% 50%, #fff, transparent),
    radial-gradient(1px 1px at 70% 30%, #fff, transparent),
    radial-gradient(1px 1px at 90% 70%, #fff, transparent),
    radial-gradient(1px 1px at 40% 10%, #fff, transparent),
    radial-gradient(1px 1px at 80% 40%, #fff, transparent);
  background-size: 200px 200px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  animation: starsMove 180s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(2px 2px at 20% 60%, #9ff, transparent),
    radial-gradient(2px 2px at 60% 20%, #fff, transparent),
    radial-gradient(2px 2px at 80% 80%, #9ff, transparent),
    radial-gradient(2px 2px at 35% 35%, #fff, transparent);
  background-size: 350px 350px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
  animation: starsMove 300s linear infinite;
}

@keyframes starsMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1200px 800px;
  }
}
/* Toàn bộ trang */
::-webkit-scrollbar {
  width: 8px; 
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a; 
  border-radius: 8px; 
}

::-webkit-scrollbar-thumb {
  background-color: #137daa; 
  border-radius: 8px; 
  border: 2px solid #0f172a; 
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0f8fa3; 
}
/* ===== GAME DESCRIPTION (SYNC DARK THEME) ===== */
.game-info {
  width: 100%;
  margin-top: 16px;
  padding: 24px 0; 
  background: radial-gradient(
    circle at top,
    rgba(56,189,248,0.06),
    transparent 60%
  );
}
.game-info-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}
.game-description-container {
  width: 100%;
margin: 0 auto;
 
   padding: 36px 48px;
  background: linear-gradient(135deg, #020617, #0f172a);
  border: 1px solid #1e293b;
  border-radius: 20px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(56,189,248,0.05);
}

.game-description-container h1 {
  font-size: 26px;
  margin-bottom: 18px;
  line-height: 1.35;
  color: #e5e7eb;
}

/* TEXT */
.game-description {
  font-size: 15px;
  line-height: 1.3;
  color: #cbd5f5;
  max-height: 220px;
  overflow: hidden;
  position: relative;
}

/* DARK FADE */
.game-description::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,0),
    #0f172a
  );
}

/* Typography inside description */
.game-description p {
  margin: 0 0 14px;
}

.game-description strong {
  color: #f8fafc;
}

.game-description a {
  color: #38bdf8;
  text-decoration: underline;
  text-decoration: none;
}

.game-description ul,
.game-description ol {
  margin: 10px 0 14px 18px;
}

.game-description li {
  margin-bottom: 6px;
}

.game-description.expanded {
  max-height: none;
}

.game-description.expanded::after {
  display: none;
}

/* BUTTON */
.show-more-btn {
  margin-top: 18px;
  background: none;
  border: none;
  color: #38bdf8;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.show-more-btn:hover {
  text-decoration: underline;
  color: #7dd3fc;
}
/* ================= chat ================= */
/* =========================
   QUICK CHAT BUTTON
========================= */
.quick-chat-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #00f5ff, #7c3aed);
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
  transition: all 0.3s ease;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.quick-chat-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.9);
}
/* =========================
   GAME RULE TEXT
========================= */
.chat-box p {
  text-align: center;
  font-size: 12px;
  margin-bottom: 15px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.08);
  color: #00f5ff;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.6);
  animation: glowPulse 2s infinite ease-in-out;
}
/* =========================
   MODAL BACKDROP
========================= */
.chat-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(15, 23, 42, 0.9),
    rgba(0, 0, 0, 0.95)
  );
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

/* =========================
   CHAT BOX
========================= */
.chat-box {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 20px;
  padding: 25px;
  width: 340px;
  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.3),
    0 0 80px rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: popupScale 0.25s ease;
}

/* Title style optional */
.chat-box::before {
  content: "Global Chat";
  display: block;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #00f5ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   INPUTS
========================= */
.chat-box input,
.chat-box textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  transition: 0.2s ease;
}

.chat-box input:focus,
.chat-box textarea:focus {
  border-color: #00f5ff;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
}

.chat-box textarea {
  resize: none;
  height: 80px;
}

/* =========================
   SEND BUTTON
========================= */
#sendChat {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #000;
  transition: 0.3s ease;
}

#sendChat:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.8);
}

/* =========================
   GLOBAL MARQUEE (RUNNING TEXT)
========================= */
#globalMarquee {
  position: fixed;
  top: 80px;
  left: 100%;
  white-space: nowrap;
  background: linear-gradient(90deg, #facc15, #f97316);
  color: #000;
  padding: 5px 5px;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.8);
  z-index: 999999999;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes popupScale {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ================= RESPONSIVE =================== */
/* ================================================= */

/* ---------- LARGE LAPTOP (<= 1400px) ---------- */
@media (max-width: 1400px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .category-page .games-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* ---------- LAPTOP / TABLET LANDSCAPE (<= 1200px) ---------- */
@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-page .games-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .quick-games.two-col {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ---------- TABLET PORTRAIT (<= 992px) ---------- */
@media (max-width: 992px) {
  .search-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo {
    font-size: 22px;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-page .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-card-img {
    width: 140px;
  }

  .mood-grid {
    gap: 24px;
  }
}

/* ================================================= */
/* ================= MOBILE UI ===================== */
/* ================================================= */
@media (max-width: 768px) {
  /* ----- HEADER ----- */
  .search-header {
    padding: 10px 12px;
  }

  .logo,
  .nav {
    display: none;
  }

  .logo-mini {
    font-size: 24px;
  }

  .search-box input {
    font-size: 14px;
    padding: 12px;
  }

  /* ----- CATEGORY BAR ----- */
  .category-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .category-list::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    font-size: 13px;
    padding: 6px 12px;
  }

  .quick-games {
    padding: 12px;
    
  }

  .quick-games.two-col {
    display: block;
  }

  .quick-col {
    margin-bottom: 14px;
  }

  /* LIST TRƯỢT NGANG */
  .quick-games .quick-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  /* ẨN SCROLLBAR */
  .quick-games .quick-list::-webkit-scrollbar {
    display: none;
  }

  /* CARD */
  .quick-card-img {
    flex: 0 0 auto;
    width: 130px;
    scroll-snap-align: start;
  }

  /* ----- GAME GRID: 2 GAME / ROW ----- */
  .games-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .games-grid .game-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .games-grid .game-card img {
    height: 110px;
  }

  /* ----- CATEGORY PAGE ----- */
  .category-page .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px;
  }

  /* ----- SEARCH PAGE ----- */
  .search-page h2 {
    font-size: 20px;
  }

  .search-page .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ----- MOOD GRID ----- */
  .mood-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .mood-item {
    font-size: 16px;
    padding: 16px;
  }

  /* ----- FOOTER ----- */
  .footer-bg {
    padding: 24px 12px;
  }

  .footer-grid {
    gap: 16px;
  }

  .footer-center img {
    height: 36px;
  }
}

/* ---------- SMALL MOBILE (<= 480px) ---------- */
@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-title {
    font-size: 11px;
  }

  .search-box button {
    width: 46px;
  }

  .quick-card-img {
    width: 120px;
  }

  .category-card {
    font-size: 12px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ================= ULTRA WIDE DESKTOP ================= */
@media (min-width: 1600px) {
  .layout-3col {
    max-width: 1800px;
    grid-template-columns: 340px minmax(0, 1fr) 340px;
    gap: 32px;
  }

  .game-box {
    border-radius: 22px;
  }

  .games-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .category-page .games-grid {
    grid-template-columns: repeat(10, 1fr);
  }
  .quick-list .quick-card-img:nth-child(4),
  .quick-list .quick-card-img:nth-child(5) {
    display: block;
  }
}

