/* Floralia · text fixes over css/bookcontrast.css (2026-10-12). The first fix here (no halo on seven selectors) was taken
   out again: the regenerated bookcontrast.css picks each halo from the text's own colour, which removed the smudge's
   cause, and without a halo the grade-coloured names (near-white common, light blue rare) vanished on parchment. */

/* buttons on light book pages (2026-10-12, the user: "มันเบลอ" on the bag's "ประเมิน" button): a soft 3-layer halo round a
   button's label reads as blur. A button's own plate is flat and known, so its label only needs one crisp 1 px shadow:
   light labels (primary) a dark one under, dark labels (the cream buttons) none. (:not(#_) only adds weight, matches all.) */
html:root[data-booklight][data-book] #ui .bookwin button.btn.primary:not(#_),
html:root[data-booklight][data-book] #ui .bookwin button.btn.primary:not(#_) * { text-shadow: 0 1px 0 rgba(30, 12, 44, 0.85) !important; }
html:root[data-booklight][data-book] #ui .bookwin button.btn:not(.primary):not(#_),
html:root[data-booklight][data-book] #ui .bookwin button.btn:not(.primary):not(#_) * { text-shadow: none !important; }

/* a primary button's label is always the light one (2026-10-13, the user: "แก้ไขตัวหนังสือไม่ชัด" on the daily tasks'
   "รับรางวัล"): bookcontrast's fill for a row's small buttons (meant for the cream "ไปทำ") also painted the purple
   primary's label purple - purple on purple */
html:root[data-booklight][data-book] #ui .bookwin button.btn.primary:not(:disabled):not(#_),
html:root[data-booklight][data-book] #ui .bookwin button.btn.primary:not(:disabled):not(#_) * { color: #fff6de !important; -webkit-text-fill-color: #fff6de !important; }

/* the card page's orange "ใส่ช่อง ..." (2026-10-13, the HUD session's contrast audit: cream on orange 2.86:1): the cream
   label above gets a crisp 1 px dark ring there (four hard offsets, no blur - a soft halo read as blur to the user) */
html:root[data-booklight][data-book] #ui .bookwin .cd-acts button.btn.primary:not(:disabled):not(#_),
html:root[data-booklight][data-book] #ui .bookwin .cd-acts button.btn.primary:not(:disabled):not(#_) * {
  text-shadow: 1px 0 0 rgba(60, 24, 4, 0.9), -1px 0 0 rgba(60, 24, 4, 0.9), 0 1px 0 rgba(60, 24, 4, 0.9), 0 -1px 0 rgba(60, 24, 4, 0.9) !important; }
