/* Shared styles for individual game pages (site/games/*).
   Hub page (site/index.html) has its own inline styles. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif;
  background: linear-gradient(160deg, #1b1035 0%, #241547 45%, #0f2a43 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}
canvas { display: block; margin: 0 auto; max-width: 100%; touch-action: none; }
/* Fixed home/back button (top-left in RTL pages). */
.home-btn {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.35); color: #fff;
  font-size: 20px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.home-btn:active { transform: scale(.92); }
/* Centered column wrapper for DOM-based games. */
.game-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; padding: 60px 12px 20px;
}
.game-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; text-align: center; }
.game-sub { font-size: 13px; opacity: .75; margin: 0 0 14px; text-align: center; }
.score-bar {
  display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; justify-content: center;
}
.score-chip {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600;
}
.big-btn {
  background: linear-gradient(135deg, #ff9a9e, #f6a5c0); color: #fff; border: none;
  border-radius: 999px; padding: 12px 28px; font-size: 16px; font-weight: 700;
  font-family: inherit; cursor: pointer; box-shadow: 0 6px 18px rgba(246,165,192,.45);
}
.big-btn:active { transform: scale(.96); }
