/*
Theme Name: 2048 Game
Author: 2048 Game
Description: Theme WordPress game 2048 responsive, đa ngôn ngữ, SEO quốc tế, với 2048 Classic và các chế độ 4×4, 5×5, 6×6, 8×8, 10×10, không cần tài khoản.
Version: 6.9.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: game-2048
*/

/* Base styles used on WordPress fallback pages. The heavier game stylesheet is
 * loaded only on the front page to avoid wasting CSS/JS on normal content pages.
 */
* {
  box-sizing: border-box;
}

/* v5.0.6 — one typography system across game, editorial and trust pages.
 * Latin/Vietnamese deliberately use a plain system-safe sans stack; scripts
 * that need native glyph coverage override only the family token, not the
 * typography scale/weights. No third-party font is downloaded. */
:root {
  --g2048-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Tahoma, sans-serif;
  --g2048-font-regular: 400;
  --g2048-font-bold: 700;
}
html[lang^="ja"] { --g2048-font-sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; }
html[lang^="ko"] { --g2048-font-sans: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif; }
html[lang="zh-CN"] { --g2048-font-sans: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
html[lang="zh-TW"] { --g2048-font-sans: "Microsoft JhengHei", "PingFang TC", Arial, sans-serif; }
html[lang^="th"] { --g2048-font-sans: Tahoma, Arial, sans-serif; }

html,
body.game2048-theme {
  margin: 0;
  min-height: 100%;
  background: #faf8ef;
  color: #776e65;
}

body.game2048-theme {
  font-family: var(--g2048-font-sans);
  font-weight: var(--g2048-font-regular);
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

/* System-safe font stacks: no webfont download and no synthetic display font. */

/* v6.5.0 — readable, consistent typography across every theme surface.
 * No downloaded/display/AI-style font: use native UI fonts and real 400/600/700 weights only. */
body.game2048-theme,
body.game2048-theme :where(button, input, textarea, select) {
  font-family: var(--g2048-font-sans);
}


/* Keep native game controls on the site font without outranking component
 * font sizes/weights. :where() contributes zero specificity. */
:where(body.game2048-theme) :where(button, input, textarea, select) {
  font: inherit;
}

.g2048-content-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0;
}

.g2048-content-card {
  padding: clamp(24px, 5vw, 48px);
  border-radius: 18px;
  background: #fffaf2;
}

.g2048-content-title {
  margin-top: 0;
}

.g2048-content-body {
  line-height: 1.7;
}

/* Standard accessible text utility used by virtual tool/content templates. */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 10001;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  clip: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  border-radius: 8px;
  background: #fff;
  color: #403a34;
}

.g2048-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #776e65;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 120ms ease;
}

.g2048-skip-link:focus {
  transform: translateY(0);
}

.g2048-content-action {
  display: inline-flex;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 9px;
  align-items: center;
  background: #8f7f70;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.g2048-content-action:hover,
.g2048-content-action:focus-visible {
  background: #7d6f62;
}

/* v3.8.0: defer below-the-fold rendering while preserving estimated space. */
@supports (content-visibility: auto) {
  .g2048-site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 560px;
  }
}
