/* The Habit Crew in the booking audit. Sprites stay crisp: nothing here smooths a pixel. */
.ac-lineup img, .ac-bar img, .ac-clue-img, .ac-also-img, .ac-sprite { image-rendering: pixelated; }

/* the five, side by side */
.ac-lineup {
  list-style: none; display: flex; align-items: flex-end; justify-content: flex-start;
  gap: clamp(.6rem, 2.4vw, 1.8rem); margin: 2.4rem 0 .8rem; padding: 0; flex-wrap: nowrap;
}
.ac-lineup li { display: flex; flex-direction: column; align-items: center; gap: .6rem; min-width: 0; flex: 0 1 auto; }
.ac-lineup img { display: block; width: auto; max-width: 100%; height: clamp(58px, 11vw, 112px); object-fit: contain; }
.ac-lineup .mono-label { font-size: .62rem; }
.ac-tag { color: var(--dim, #8a8780); margin-bottom: 1.4rem; }
.ac-hero-art .ac-tag { margin-bottom: 0; }

/* before the reveal: dark shapes, a light passing along them, one step at a time */
.ac-lineup.is-hidden img {
  filter: brightness(0) invert(.26);
  animation: acSweep 2.5s steps(1) infinite;
  animation-delay: calc(var(--i) * .5s);
}
@keyframes acSweep {
  0% { filter: brightness(0) invert(.72); transform: translateY(-6px); }
  20%, 100% { filter: brightness(0) invert(.26); transform: none; }
}

/* progress bar: each figure lights up once an answer points to it */
.ac-bar { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: .55rem; margin-top: .8rem; }
.ac-bar[hidden] { display: none; }
.ac-bar-label { margin-inline-end: auto; align-self: center; font-size: .62rem; }
.ac-bar-fig { display: block; line-height: 0; }
.ac-bar-fig img { width: auto; height: 30px; filter: brightness(0) invert(.26); transition: transform .2s steps(3); }
.ac-bar-fig.is-lit img { filter: none; transform: translateY(-2px); }

/* a clue under a note */
.ac-clue {
  display: flex; align-items: center; gap: 1.2rem; margin-top: 1.6rem; padding: 1.1rem 1.3rem;
  max-width: 62ch; border: 1px solid var(--hairline, rgba(244,241,234,.12)); border-inline-start: 2px solid var(--crimson, #D11A2A);
}
.ac-clue-img { flex: 0 0 auto; width: auto; height: 74px; }
.ac-clue p { margin: 0; }
.ac-clue .mono-label { margin-bottom: .45rem; }
.ac-clue-voice { font-style: italic; font-weight: 500; color: var(--bone, #F4F1EA); margin-bottom: .3rem !important; }

/* the character reveal */
.ac-hero { display: grid; grid-template-columns: minmax(170px, 260px) 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; margin-top: 1.6rem; }
.ac-hero-art { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.ac-sprite { display: block; width: 100%; max-width: 240px; height: auto; animation: acReveal .9s steps(6) both; }
@keyframes acReveal {
  0% { filter: brightness(0) invert(.26); transform: scale(.82); }
  60% { filter: brightness(0) invert(.9); transform: scale(1.06); }
  100% { filter: none; transform: none; }
}
.ac-hero .ac-hero-body > .mono-label { margin-bottom: .5rem; }
.ac-cls { color: var(--dim, #8a8780); font-size: .95rem; margin: 0 0 .9rem; }
.ac-habit { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; color: var(--bone, #F4F1EA); font-weight: 500; margin: 0 0 1.4rem; }
.ac-facts { margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.ac-facts dt { margin-bottom: .3rem; }
.ac-facts dd { margin: 0; }
.ac-voice { font-style: italic; color: var(--bone, #F4F1EA); }
.ac-problems { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.4rem; }
.ac-problems b { display: block; color: var(--bone, #F4F1EA); margin-bottom: .15rem; }
.ac-problems span { font-size: .93rem; }

.ac-leaks-head { margin-top: clamp(2.6rem, 6vw, 4rem); }

/* "you've also got a bit of..." */
.ac-also { margin-top: clamp(2.6rem, 6vw, 4rem); }
.ac-also .h3 { margin-bottom: 1.2rem; }
.ac-also-row { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 0; border-top: 1px solid var(--hairline, rgba(244,241,234,.12)); max-width: 66ch; }
.ac-also-row p { margin: 0; }
.ac-also-row b { color: var(--bone, #F4F1EA); }
.ac-also-img { flex: 0 0 auto; width: auto; height: 62px; }

@media (max-width: 640px) {
  .ac-hero { grid-template-columns: 1fr; }
  .ac-sprite { max-width: 180px; }
  .ac-problems { grid-template-columns: 1fr; }
  .ac-clue { padding: 1rem; gap: .9rem; }
  .ac-clue-img { height: 60px; }
  .ac-bar-fig img { height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-lineup.is-hidden img, .ac-sprite { animation: none; }
  .ac-bar-fig img { transition: none; }
}
