/* Hamed's World v2 · compat layer (round 11, builder A). Linked only on the classic engines wrapped in the new look's shell
   (lib/v2/play.mjs: games, little ones' pages, classic activities). The classic stylesheet site.css is NOT loaded there; the engines'
   own CSS (play.css, kids.css, r3.css …) still reads the classic variable names, so they are mapped here to Umm Hamed's tokens:
   Cairo for every role, navy for ink and the primary, her sand/line for the ivory steps, gold only for small details (never text).
   Page families then re-skin in css/v2/play.css · kids.css · acts.css. */
html.v2 {
  --text: var(--font); --display: var(--font);
  --ink: var(--c-navy); --ink-soft: var(--c-muted);
  --ivory: var(--c-ivory); --ivory-2: var(--c-sand); --ivory-3: var(--c-line);
  --wood: var(--c-navy); --wood-deep: var(--c-hover);
  --gold: var(--c-gold); --gold-text: var(--c-navy); --gold-hi: #D9C08A;
  --silver: var(--c-silver); --silver-deep: #8C949F;
  --accent: var(--c-navy); --accent-deep: var(--c-hover);
  --shadow-btn: none; --radius: var(--radius-card);
  --dir: -1;
}
html.v2[dir="ltr"] { --dir: 1; }

/* the classic base classes the engines' markup uses */
.no-js .js-only { display: none !important; }
.cl .kicker { font-size: var(--fs-small); font-weight: var(--w-ui); color: var(--c-muted); margin: 0 0 .25em; }
.cl .btn:not(.btn--secondary):not(.btn--on-night):not(.btn--ghost-night) { background: var(--c-navy); color: #fff; }
.cl .btn:not(.btn--secondary):not(.btn--on-night):not(.btn--ghost-night):focus-visible { background: var(--c-hover); }
.cl .ghost { display: inline-flex; align-items: center; gap: 8px; min-height: var(--btn-h); padding: 10px 6px; font-size: var(--fs-ui); font-weight: var(--w-ui); color: var(--c-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; background: none; border: 0; cursor: pointer; }
.cl .tool { min-height: 44px; padding: 0 16px; border-radius: var(--radius-btn); border: 1.5px solid var(--c-line); background: var(--c-card); color: var(--c-navy); font-size: var(--fs-small); font-weight: var(--w-ui); cursor: pointer; }
.cl :where(h1, h2, h3) { font-family: var(--font); }
@media (hover: hover) and (pointer: fine) {
  .cl .btn:not(.btn--secondary):not(.btn--on-night):not(.btn--ghost-night):hover { background: var(--c-hover); }
  .cl .ghost:hover { color: var(--c-hover); }
}
