/* ======================================================================
   amd168-noir.css — GOLD-HIGHLIGHT override for the ม่วงดำ theme (ทาง A,
   owner 2026-11-27, task #100).

   This is amd168-noir's OWN css layer. It is loaded ONLY on amd168-noir
   pages (injected by `themes/amd168-noir/css.tsx`); it NEVER touches
   `amd168.css`, which demo06 shares. It changes COLOUR ONLY — no geometry,
   no layout — and it does it by re-binding the handful of amd168 "gold"
   hooks that the violet palette had turned violet, back to the GOLD accent,
   so the crown / primary action buttons / active tab / gold frames read gold
   on the purple-black ground (matching the owner's reference). A couple of
   elements are pinned the other way, to VIOLET, per the owner's call.

   Every selector is raised one notch in specificity (a doubled `.amd-shell`
   or an `.amd-shell `-prefixed element selector) so it wins over `amd168.css`
   regardless of stylesheet load order — nothing here depends on the override
   link coming after the base link.

   Ground (`--bg-*`), value text (`--amd-tertiary` = `--accent`), card borders
   (`--border-*`) and the star/value golds are already correct from the
   palette and are deliberately NOT restated here.
   ====================================================================== */

/* GOLD again: the "gold" bridge hooks amd168 maps to the brand ramp.
   Rebinding them here turns the login/primary buttons (.amd-btn-gold,
   .amd-btn-login), the inner-page back chip (.amd-pg-back) and the withdraw
   chip hover gold — the reference's gold CTAs — without editing amd168.css. */
.amd-shell.amd-shell {
  --amd-gold: var(--gradient-accent);
  --amd-gold-flat: var(--accent);
  --amd-gold-text: #17082e;
  --amd-login-bg: linear-gradient(90deg, #f2a118, #fade5e);
}

/* Active game / quick-menu tab → gold (amd168.css binds it to var(--brand-*),
   which is violet here). Matches the reference's gold selected state. */
.amd-shell .tab-games-selector-item.active {
  background: linear-gradient(to bottom, #f2a118, #fade5e);
  color: #17082e;
}
.amd-shell .tab-games-selector-item.active .title {
  color: #17082e;
}

/* Centre crown / play disc → gold ring on a dark disc (amd168.css bound the
   ring to var(--brand-500); the reference shows a GOLD-ringed centre crown).
   Geometry is amd168's — only the border/background colour changes. */
.amd-shell .amd-footer-play .btn {
  background: radial-gradient(circle at 50% 35%, #1a0d33, #0a0518);
  border: 2px solid var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6),
    0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
}
.amd-shell .amd-footer-play .text {
  color: var(--accent);
}

/* Game-tile inner frame → gold (amd168.css draws it with var(--brand-500)). */
.amd-shell .amd-game-tile::after {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent);
}

/* VIOLET, per the owner: the INACTIVE bottom-nav side items (icons + labels)
   carry the theme's violet, so the gold is reserved for the active centre
   crown and the value golds. `.amd-footer-play .text` above stays gold. */
.amd-shell .amd-footer-link .ic,
.amd-shell .amd-footer-link .text {
  color: var(--brand-400);
}
