/* BackgammonX v0.1.9 — 04-themes-responsive.css
   Owns: appearance (dark/light), text-size hooks, breakpoints, reduced motion.
   Board and player colours are product-specific and are NOT set here. */

:root { --bgx-css-04: 1; }

/* Appearance hooks */
html[data-appearance="light"] {
  --bg: #efe9da;
  --surface: #f8f4ea;
  --surface-raised: #ffffff;
  --text: #1d231f;
  --text-muted: #5d655f;
  --line: rgba(29, 35, 31, 0.14);
  --gold: #b8871c;
  --green: #2f8149;
}

/* Text-size hooks */
html[data-text-size="small"]  { --text-scale: 0.9; }
html[data-text-size="normal"] { --text-scale: 1; }
html[data-text-size="large"]  { --text-scale: 1.15; }

/* Breakpoints: desktop ≥ 1024, tablet 640–1023, phone < 640 */
@media (max-width: 1023px) {
  .app-main {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    padding: var(--space-4);
    padding-bottom: calc(var(--bottom-nav-height) + var(--space-4));
  }
  .board-frame { max-width: 760px; }
}

@media (max-width: 639px) {
  :root { --header-height: 64px; }
  .app-main { padding: var(--space-3); padding-bottom: calc(var(--bottom-nav-height) + var(--space-3)); }
  .board-frame { max-width: 100%; }
  .panel { padding: var(--space-3) var(--space-3) var(--space-4); }
  .setting-row { flex-direction: column; align-items: flex-start; }
  .x-drawer { width: min(320px, 86vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
