/*
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: 4.5.5
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;
}

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

body.game2048-theme {
  font-family: Arial, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* System-safe font stacks: no webfont download and no synthetic display font. */
html[lang^="ja"] body.game2048-theme { font-family: "Yu Gothic", Meiryo, Arial, sans-serif; }
html[lang^="ko"] body.game2048-theme { font-family: "Malgun Gothic", Arial, sans-serif; }
html[lang="zh-CN"] body.game2048-theme { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
html[lang="zh-TW"] body.game2048-theme { font-family: "Microsoft JhengHei", "PingFang TC", Arial, sans-serif; }
html[lang^="th"] body.game2048-theme { font-family: Tahoma, Arial, sans-serif; }

body.game2048-theme button,
body.game2048-theme input,
body.game2048-theme textarea,
body.game2048-theme 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;
}

.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;
  }
}
