/* Study Quest — light.css (V7.8 "The living game", lane D, builder v78-lights): the Light button and the Light buff.
 * Crafted, flat colour, no gradients: the user, 25 Oct. The fuel ring is a flat stroke round the icon; the shimmer
 * a short flicker of the icon's brightness (a slow dim pulse under reduced motion, never a strobe). js/ui-light.js sets the classes:
 *   .lt-has (the light owns this button / buff) · .lt-grey (nothing can burn: the reason is in the tooltip) · .lt-low (under 30 min)
 *   .lt-resting (a lit road or a town: the light rests) · .lt-shimmer (now) · .lt-reduced (reduced motion)
 */
.lt-icon { width: 100%; height: 100%; display: block; }
.lt-ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); pointer-events: none; z-index: 2; }
.ab-icon > .lt-ring { inset: -12%; width: 124%; height: 124%; }
.lt-ring__bg { fill: none; stroke: #1a140c; stroke-width: 1.8; opacity: 0.8; }
.lt-ring__fg { fill: none; stroke: #e8b55a; stroke-width: 1.8; stroke-linecap: butt; }
.ab-btn.lt-has .lt-icon { filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 1px #000); }
.lt-low .lt-ring__fg { stroke: #d0622e; }
.lt-resting .lt-ring__fg { stroke: #8a8f78; }

/* the Light buff in the buff row: a flat dark-amber tile, its edge a darker line */
.uf-buffs .buff.lt-has { background: #2a1f12; outline: 1px solid #120c06; outline-offset: -2px; }
.uf-buffs .buff.lt-has .buff-icon { filter: none; }
.uf-buffs .buff.lt-has.lt-grey { background-color: #24262a; }
.uf-buffs .buff.lt-has.lt-grey .buff-icon { filter: grayscale(1); opacity: 0.55; }
.uf-buffs .buff.lt-has.lt-resting .buff-icon { opacity: 0.7; }

/* the Light button: the best light's icon; grey with the reason when nothing can burn */
.ab-btn.lt-has .ab-icon .lt-icon { width: 100%; height: 100%; }
.ab-btn.lt-has.lt-grey .ab-icon { filter: grayscale(1); opacity: 0.45; }

/* the shimmer: a short flicker of brightness, then still */
.lt-shimmer .lt-icon, .lt-shimmer .buff-icon { animation: ltFlicker 0.9s steps(9, end) 1; }
.lt-shimmer.lt-reduced .lt-icon, .lt-shimmer.lt-reduced .buff-icon { animation: ltPulse 1.6s ease-in-out 1; }
@keyframes ltFlicker {
  0% { opacity: 1; } 11% { opacity: 0.55; } 22% { opacity: 0.95; } 33% { opacity: 0.4; } 44% { opacity: 0.85; }
  55% { opacity: 0.6; } 66% { opacity: 1; } 77% { opacity: 0.7; } 100% { opacity: 1; }
}
@keyframes ltPulse { 0% { opacity: 1; } 50% { opacity: 0.65; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lt-shimmer .lt-icon, .lt-shimmer .buff-icon { animation: ltPulse 1.6s ease-in-out 1; }
}
.lt-tip-later { color: #7d7a72; }
