/* IRIDESCENT FOIL (idea: dqnamo's Iridescent Foil in The Kitchen).
   A card that catches the light: a thin holographic ring, a faint foil wash and a
   band of sheen that slides as you scroll and follows the pointer. It is a
   treatment, not a layout: add class "irid" to a card that is already
   position-able, and "fill" for a full foil surface (a prize, not a plan).
   Text keeps the card's own colours, so contrast is unchanged; the foil sits
   behind content (wash) or on the edge (ring), never across the words except
   as a soft highlight. --fx --fy --gx --gy are set by foil.js. */
.irid { --fx: .5; --fy: .5; --gx: 50%; --gy: 30%; position: relative; isolation: isolate;
  --foil: linear-gradient(115deg, #ff8fd0, #ffd56a, #78eec0, #78b4ff, #c496ff, #ff8fd0); }
.irid::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 2px; pointer-events: none;
  background: var(--foil) calc(var(--fx) * 100% + var(--fy) * 100%) 50% / 320% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude;
  transition: filter .3s ease; }
.irid::after { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(240px circle at var(--gx) var(--gy), rgba(255,255,255,.55), rgba(255,255,255,0) 60%),
    linear-gradient(105deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 68%) calc(var(--fy) * 100%) 0 / 300% 100%,
    var(--foil) calc(var(--fx) * 100% + var(--fy) * 100%) 50% / 320% 100%;
  opacity: .16; mix-blend-mode: soft-light; }
.irid:not(.lit)::after { background-image:
    linear-gradient(105deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 68%),
    var(--foil); background-position: calc(var(--fy) * 100%) 0, calc(var(--fx) * 100% + var(--fy) * 100%) 50%; background-size: 300% 100%, 320% 100%; }
.irid.lit::after { opacity: .3; }
.irid > * { position: relative; z-index: 2; }
.irid.fill { background: linear-gradient(115deg, #ffe0f1, #fff0bd, #d3fae8, #d5e7ff, #e8d9ff, #ffe0f1) calc(var(--fx) * 100% + var(--fy) * 100%) 50% / 320% 100% !important; color: #15120F !important; }
.irid.fill::after { opacity: .55; mix-blend-mode: overlay; }
.irid.fill b, .irid.fill .bz-bar { color: inherit; }
:root[data-theme="dark"] .irid::after, html[data-theme="dark"] .irid::after { opacity: .12; }
:root[data-theme="dark"] .irid.fill, html[data-theme="dark"] .irid.fill { background-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { .irid::before, .irid::after { transition: none; } }

/* NEON (Eden, 2026-10-14: "I like the dynamic neon edge around the Leader card ... put it on more things, but do not
   overwhelm the user"). `irid neon` on a card: the same thin holographic edge, but its colours also drift slowly on
   their own (so it is alive even before you touch the page), and in the dark it gives off a faint glow. It is used on
   a handful of places that deserve the eye, never on lists or on every card:
   the first-listing prompt and the next-step card, Tayo's message box, the homepage question box and Tayo's handover. */
.irid.neon::before { padding: 1.5px; animation: neonHue 16s linear infinite; }
@keyframes neonHue { to { filter: hue-rotate(360deg); } }
html[data-theme="dark"] .irid.neon { box-shadow: 0 0 22px -8px rgba(150,120,255,.45), 0 0 38px -14px rgba(255,140,200,.35); }
html[data-theme="dark"] .irid.neon::before { padding: 2px; filter: saturate(1.25) brightness(1.15); }
@media (prefers-reduced-motion: reduce) { .irid.neon::before { animation: none; } }
