/* Additions only: the supplied common.min.css and its utility classes stay intact. */
[hidden] { display: none !important; }
/* Keep the original single-row navbar; hidden/md:flex controls the middle menu. */
.site-header > div:first-child { flex-wrap: nowrap; gap: 1rem; }
.site-header-actions { flex-shrink: 0; }
.site-dropdown { position: relative; }
.site-contact-toggle { display: inline-flex; align-items: center; gap: .4rem; border: 0; padding: 0; background: transparent; font: inherit; cursor: pointer; white-space: nowrap; }
.site-chevron { font-size: 1rem; line-height: 1; }
.site-dropdown-panel { position: absolute; top: calc(100% + 1rem); right: 0; z-index: 60; padding: .75rem; border: 1px solid rgba(0,212,255,.25); border-radius: .8rem; background: #0b1830; box-shadow: 0 16px 40px rgba(0,0,0,.4); animation: site-dropdown-in .18s ease-out; }
.site-header-contact-panel { width: 240px; max-width: calc(100vw - 3rem); padding: .5rem; max-height: calc(100dvh - 6rem); overflow-y: auto; }
.site-language-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .85rem; cursor: pointer; }
.site-language-panel { min-width: 160px; max-height: min(24rem, 65vh); overflow-y: auto; }
.site-language-panel a { display: block; padding: .6rem .8rem; border-radius: .4rem; white-space: nowrap; }
.site-language-panel a:hover, .site-language-panel [aria-current] { background: rgba(0,212,255,.1); color: #00d4ff; }
.site-social-links { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: .75rem; }
.site-social-link { flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(0,212,255,.2); border-radius: .65rem; background: rgba(0,212,255,.06); transition: transform .2s, background .2s; }
.site-social-link:hover { transform: translateY(-2px); background: rgba(0,212,255,.16); }
.site-brand-icon { display: block; width: 28px; height: 28px; flex: 0 0 auto; object-fit: contain; }
/* Contact menus show one branded icon and a visible, left-aligned name per row. */
.site-social-list { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .25rem; }
.site-social-list .site-social-link { flex: 0 0 auto; width: 100%; height: auto; min-height: 56px; justify-content: flex-start; gap: .875rem; padding: .75rem; border: 0; border-radius: .625rem; background: transparent; color: #e2e8f0; text-align: left; text-decoration: none; transform: none; transition: background-color .18s, color .18s; }
.site-social-list .site-brand-icon { width: 32px; height: 32px; }
.site-social-list .site-social-label { font-size: .9375rem; line-height: 1.5; font-weight: 500; }
.site-social-list .site-social-link:hover, .site-social-list .site-social-link:focus-visible { background: rgba(255,255,255,.07); color: #fff; }
.site-social-list .site-social-link:active { background: rgba(0,212,255,.13); color: #fff; }
.site-social-list .site-social-link:focus-visible { outline-offset: -2px; }
.site-footer-contact > button { min-height: 24px; }
.site-footer-contact .site-dropdown-panel { top: auto; bottom: calc(100% + .65rem); right: auto; left: 0; width: 240px; max-width: calc(100vw - 3rem); padding: .5rem; }
.site-footer-contact > button[aria-expanded="true"] .site-chevron { transform: rotate(180deg); }
.site-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-video { aspect-ratio: 16 / 9; width: 500px; max-width: 100%; height: auto; display: inline-block; object-fit: contain; background: #020817; }
.site-cta-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 1rem; }
.site-download, .site-guide-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-width: 180px; cursor: pointer; }
.site-guide-column { display: flex; flex-direction: column; align-items: center; }
.site-guide-panel { overflow: hidden; }
.site-guide-panel .site-social-links { padding: 1rem .25rem .25rem; }
.site-header a:focus-visible, .site-header button:focus-visible, .site-social-link:focus-visible, .site-footer-contact > button:focus-visible, .site-guide-button:focus-visible, .site-download:focus-visible { outline: 2px solid #00d4ff; outline-offset: 5px; }
html { scroll-padding-top: 120px; }
.site-nav-links[dir="rtl"] .site-dropdown-panel { right: auto; left: 0; }
[dir="rtl"] .font-display { letter-spacing: normal; }
@keyframes site-dropdown-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.site-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: .6rem; cursor: pointer; }
.site-mobile-toggle svg { width: 22px; height: 22px; }
.site-menu-close, .site-mobile-toggle[aria-expanded="true"] .site-menu-lines { display: none; }
.site-mobile-toggle[aria-expanded="true"] .site-menu-close { display: block; }
.site-mobile-menu { position: absolute; inset-inline: 0; top: 100%; padding: 1rem 1.5rem; max-height: calc(100dvh - 80px); overflow-y: auto; background: #0b1830; border-bottom: 1px solid rgba(0,212,255,.2); box-shadow: 0 18px 35px rgba(0,0,0,.3); animation: site-dropdown-in .18s ease-out; }
.site-mobile-nav-links { display: flex; flex-direction: column; }
.site-mobile-nav-links a { padding: .75rem 0; }
.site-mobile-contact { border-top: 1px solid rgba(0,212,255,.15); margin-top: .5rem; padding-top: .5rem; }
.site-mobile-contact > button { justify-content: space-between; width: 100%; padding: .75rem 0; }
.site-mobile-contact-panel { margin: .375rem 0 .5rem; padding: .5rem; border: 1px solid rgba(0,212,255,.15); border-radius: .8rem; background: #071326; animation: site-dropdown-in .18s ease-out; }
.site-mobile-contact > button[aria-expanded="true"] .site-chevron { transform: rotate(180deg); }
@media (min-width: 48rem) {
  .site-mobile-toggle, .site-mobile-menu { display: none !important; }
}
.site-support-main { padding-top: 7rem; }
.site-support-article { max-width: 56rem; color: #cbd5e1; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.site-support-article h2, .site-support-article h3, .site-support-article h4 { color: #fff; font-weight: 700; line-height: 1.4; margin: 1.75rem 0 .75rem; }
.site-support-article h2 { font-size: 1.5rem; }
.site-support-article h3 { font-size: 1.25rem; }
.site-support-article p, .site-support-article ul, .site-support-article ol { margin: 0 0 1rem; }
.site-support-article ul, .site-support-article ol { padding-inline-start: 1.5rem; }
.site-support-article ul { list-style: disc; }
.site-support-article ol { list-style: decimal; }
.site-support-article li { margin-bottom: .35rem; }
.site-support-article a:not(.site-social-link) { color: #00d4ff; text-decoration: underline; text-underline-offset: .2em; }
.site-support-article blockquote { padding-inline-start: 1rem; border-inline-start: 3px solid #00d4ff; margin-block: 1rem; }
.site-support-article table { display: block; overflow-x: auto; width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.site-support-article td, .site-support-article th { border: 1px solid rgba(0,212,255,.2); padding: .6rem; }
.site-support-article pre { white-space: pre-wrap; }
.site-support-article [id] { scroll-margin-top: 6rem; }
@media (max-width: 420px) {
  .site-header { padding-left: 1rem; padding-right: 1rem; }
  .site-logo img { max-width: 160px; object-fit: contain; }
  .site-cta-row { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .site-dropdown-panel, .site-mobile-menu, .site-mobile-contact-panel { animation: none; }
  .site-social-link, .site-social-list .site-social-link { transition: none; }
}

/* Live game search */
.site-header-search { position: relative; flex: 1 1 12rem; min-width: 0; max-width: 14rem; }
.site-search-field { position: relative; }
.site-search-icon { position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #94a3b8; pointer-events: none; }
#game-search-input { display: block; box-sizing: border-box; width: 100%; height: 42px; border: 1px solid rgba(0,212,255,.25); border-radius: .65rem; padding: .6rem .75rem; padding-inline-start: 2.5rem; background: #0b1830; color: #f1f5f9; font: inherit; font-size: 16px; outline: none; }
#game-search-input::placeholder { color: #94a3b8; opacity: 1; }
#game-search-input:focus-visible { border-color: #00d4ff; box-shadow: 0 0 0 2px rgba(0,212,255,.15); }
.site-search-dropdown { position: absolute; inset-inline-end: 0; top: calc(100% + .65rem); z-index: 70; width: max(100%, 280px); max-width: calc(100vw - 3rem); max-height: min(24rem, calc(100dvh - 10rem)); overflow-y: auto; overscroll-behavior: contain; padding: .5rem; border: 1px solid rgba(0,212,255,.25); border-radius: .8rem; background: #0b1830; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
#game-search-results { display: flex; flex-direction: column; gap: .25rem; }
.site-search-result { display: flex; align-items: center; gap: .75rem; min-height: 52px; padding: .6rem; border-radius: .5rem; color: #e2e8f0; text-decoration: none; text-align: start; }
.site-search-result img { flex: 0 0 56px; width: 56px; height: 32px; object-fit: cover; border-radius: .3rem; background: #020817; }
.site-search-result span { min-width: 0; overflow-wrap: anywhere; font-size: .9375rem; line-height: 1.4; }
.site-search-result:hover, .site-search-result[aria-selected="true"] { background: rgba(0,212,255,.1); color: #fff; }
.site-search-result:focus-visible { outline: 2px solid #00d4ff; outline-offset: -2px; }
.site-search-empty { margin: 0; padding: .8rem; color: #94a3b8; font-size: .9375rem; }
@media (max-width: 74.999rem) {
  .site-header > div:first-child { flex-wrap: wrap; gap: .75rem; }
  .site-header-search { order: 1; flex: 0 0 100%; max-width: none; }
  .site-nav-links { gap: 1rem; font-size: .875rem; }
  .site-search-dropdown { width: 100%; max-width: 100%; }
  .site-header + .py-24 { padding-top: 10rem; }
  html { scroll-padding-top: 10rem; }
  .site-mobile-menu { max-height: calc(100dvh - 140px); }
}
/* End live game search */

/* Game Hot: luôn nằm ở góc trên trái ảnh, kể cả giao diện tiếng Ả Rập. */
.game-card-image { position: relative; }
.game-hot-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: .75rem;
  background: linear-gradient(135deg, #ff9a24 0%, #ff5722 50%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220,38,38,.5), inset 0 1px 0 rgba(255,255,255,.35);
  pointer-events: none;
}
.game-hot-badge svg { display: block; width: 24px; height: 24px; }

/* Readable SSR content and layout space reserved for images/video. */
.site-seo-content { line-height: 1.8; }
.site-seo-content p { max-width: 76ch; margin-block: .75rem 1rem; }
.site-seo-content a, .site-breadcrumb a { color: #00d4ff; text-decoration: underline; text-underline-offset: .2em; }
.site-seo-content summary { cursor: pointer; }
.site-seo-content a:focus-visible, .site-seo-content summary:focus-visible { outline: 2px solid #00d4ff; outline-offset: 3px; }
.site-breadcrumb { margin: 0 0 1.5rem; padding-inline: .75rem; color: #94a3b8; }
.site-breadcrumb ol { display: flex; gap: .65rem; flex-wrap: wrap; }
.site-related-games { display: flex; gap: 1rem; flex-wrap: wrap; list-style: none; padding: 0; }
.site-preview-notice { color: #94a3b8; margin: 1rem auto; max-width: 65ch; font-size: .9375rem; }
.site-seo-hero { display: block; font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.15; }
.site-logo img, footer a > img { width: auto; }
.game-card-image img { aspect-ratio: 16 / 9; }

/* Dùng đúng fade-up/delay gốc cho lưới quá cao so với viewport mobile. */
.stagger-children > .stagger-visible { animation: fade-up .6s calc(var(--i, 0) * .1s) forwards; }
/* Nội dung SSR luôn đọc được khi JS tắt, không tải được hoặc khởi tạo lỗi. */
html:not(.motion-enabled) .reveal,
html:not(.motion-enabled) .stagger-children > * { opacity: 1; transform: none; animation: none; }

/* Optional game information: scoped to the area below Download / Guide. */
.site-game-details { margin-top: 3rem; padding-inline: 1.5rem; text-align: start; }
.site-detail-chips, .site-detail-badges { display: flex; flex-wrap: wrap; gap: .65rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.site-detail-chips li { padding: .5rem .9rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--bg-elevated); color: #cbd5e1; font-size: .875rem; overflow-wrap: anywhere; }
.site-detail-badges li { display: inline-flex; align-items: center; gap: .5rem; color: #cbd5e1; font-size: .875rem; padding-block: .25rem; }
.site-detail-badges li > span { color: var(--accent); }
.site-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.site-detail-card { min-width: 0; padding: 1.5rem; border-radius: .75rem; overflow-wrap: anywhere; }
.site-detail-card h2 { color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.5; margin: 0 0 1.25rem; }
.site-detail-card h3 { color: #e2e8f0; font-size: .9375rem; font-weight: 600; margin: 1.25rem 0 .5rem; }
.site-detail-copy { color: #94a3b8; line-height: 1.8; white-space: pre-line; margin: 0 0 1rem; }
.site-detail-copy:last-child { margin-bottom: 0; }
.site-detail-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: .9375rem; }
.site-detail-table th, .site-detail-table td { padding: .85rem .4rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.site-detail-table th { text-align: start; font-weight: 500; color: #cbd5e1; }
.site-detail-table thead th { color: #94a3b8; font-size: .8125rem; }
.site-detail-table th:first-child { width: 60%; padding-inline-start: 0; }
.site-detail-table th:not(:first-child), .site-detail-table td { text-align: center; }
.site-detail-status { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.site-detail-legend, .site-detail-note { color: #94a3b8; font-size: .8125rem; line-height: 1.7; margin: 1rem 0 0; }
.site-detail-os { list-style: disc; padding-inline-start: 1.25rem; color: #cbd5e1; line-height: 1.8; }
.site-detail-requirements { margin: 0; }
.site-detail-requirements > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; padding-block: .85rem; border-bottom: 1px solid var(--border); }
.site-detail-requirements > div:first-child { padding-top: 0; }
.site-detail-requirements > div:last-child { border-bottom: 0; padding-bottom: 0; }
.site-detail-requirements dt { color: #cbd5e1; font-weight: 600; font-size: .9375rem; }
.site-detail-requirements dd { color: #94a3b8; margin: 0; line-height: 1.7; white-space: pre-line; }
@media (min-width: 64rem) { .site-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .site-game-details { padding-inline: 1rem; } .site-detail-card { padding: 1rem; } }
