/**
 * Zoey Made — the autonomous curiosity cue (WORLD-003).
 *
 * The baseline cue, and the four object cues written on top of it — WORLD-004 for the star, the
 * gear and the door, WORLD-005 for the pencil. Every one of them is a rule in this file's shape
 * rather than a second mechanism, and none of them costs a line of JavaScript.
 *
 * The scheduler adds `.is-cueing` and takes it off again. That is the whole contract between
 * the two halves, and it is deliberately this thin: whether a cue may play is a set of six
 * rules about found state, viewport, visibility, fairness and motion preference, and none of
 * those is a thing CSS should be asked to know.
 *
 * ## What a cue is allowed to be
 *
 * One movement that ends. Not a loop, not a pulse, not a glow that stays. WORLD-002's restraint
 * rule is that Discovery waits for curiosity rather than demanding attention, and the shape of
 * a demand is repetition — an object that moves once is a thing you might have imagined, which
 * is exactly the feeling a hidden secret wants.
 *
 * The motion is small enough to be missed. That is not a defect. A cue that cannot be missed
 * is an advertisement.
 */

/*
 * ## The baseline: what an object wears before it has a cue of its own
 *
 * One shared movement. It is **calibration**: the smallest gesture that reliably reaches
 * peripheral vision on a phone.
 *
 * **Since WORLD-005 no object wears it.** All four of the cue-bearing secrets now say something
 * about themselves instead:
 *
 *     star            a single slow glint                        WORLD-004
 *     gear            one tooth of rotation, then stop           WORLD-004
 *     tiny door       a swing, and light from behind it          WORLD-004
 *     pencil          the graphite settles, as if just set down  WORLD-005
 *     paper airplane  no autonomous cue — the performance is the interaction
 *     tiny key        no autonomous cue — a Deep secret does not advertise itself
 *
 * It is kept rather than deleted, and the distinction against WORLD-004's deletion of the star's
 * baseline rule is the point: *that* rule named the star and could never apply again, while this
 * one is reached by configuration. `zoey_made_discovery_cue_ids()` decides who cues, and the day
 * a seventh secret is added to that list it has a calibrated gesture on the morning it ships and
 * its own character whenever its story is written. An unreachable rule is dead; a default is
 * not.
 *
 * Each of the four is a rule in this file's shape overriding the baseline below. None of them
 * needs a line of JavaScript: the scheduler's whole output is one class, and it never learns
 * which object it is cueing.
 *
 * ## Why a scale and not a bigger drift
 *
 * The first baseline was a ~3px rise over 1600ms, and the physical-phone review found it did
 * not do its job: it could only be seen by watching the object directly, which is exactly the
 * visitor who needs no cue. The fix is not a larger version of the same drift. Peripheral
 * vision is poor at slow positional change and comparatively good at a change of *size*, so
 * the gesture is now a small scale-up with a slight lift, over a shorter interval.
 *
 * The target is "did something over there just move?" and not "that icon is animating at me".
 *
 * Deliberately absent: bounce, overshoot, repeated pulses, glow, colour change, and anything
 * that loops. A cue is one movement that ends.
 *
 * The rotation channel is carried through rather than dropped. No cue-bearing object has a
 * resting angle today — the gear's 14deg is a hover response and its 22.5deg is a found state,
 * neither of which can be true while a cue plays — but composing the family's own
 * `--zoey-discovery-object-angle` here means the day one of them gains a resting tilt, its cue
 * does not quietly flatten it.
 */
.zoey-discovery.is-cueing .zoey-discovery-object__art {
  animation: zoey-discovery-cue 800ms ease-in-out;
}

@keyframes zoey-discovery-cue {
  0%,
  100% {
    transform: translateY(0) rotate(var(--zoey-discovery-object-angle, 0deg)) scale(1);
  }

  50% {
    transform: translateY(-2px) rotate(var(--zoey-discovery-object-angle, 0deg)) scale(1.1);
  }
}

/* --- WORLD-004: the first three object cues --------------------------------------- */

/*
 * Three of the four cue-bearing objects say something about themselves instead of wearing the
 * shared gesture. Each one overrides the baseline above rather than extending it, so there is
 * never a moment when an object is doing both. The fourth — the pencil — is below.
 */

/*
 * The star's glint is **retired** (WORLD-004, amended 2026-10-19), and the cue it carried is now
 * the shared mark every secret wears — see the SL-013 section at the end of this file.
 *
 * It was the only cue in the set made of light rather than movement, which suited the object
 * whose job is to be seen first. What ended it is that its clip is the *drawn* star, and the
 * drawn star is no longer what is on screen: SL-013 made the painted artwork the resting
 * representation and left the drawing underneath as the forced-colors fallback. Light masked to
 * a shape nobody can see lands partly off the object.
 */

/*
 * The gear — one tooth.
 *
 * It turns by exactly one tooth and stops, which is 45deg on an eight-tooth ring. The ring was
 * generated rather than drawn precisely so its teeth are identical, and that is what makes this
 * work: at the end of the cue the gear is in a *new* position that looks exactly like the old
 * one. It has moved, and it is still at rest. Nothing springs back, nothing accumulates, and
 * the next cue is another honest single step.
 *
 * `calc()` against the family's own angle so a resting tilt, if one is ever added, is turned
 * *from* rather than thrown away.
 */
.zoey-discovery.is-cueing .zoey-discovery-object--gear .zoey-discovery-object__art {
  animation: zoey-discovery-cue-gear 900ms cubic-bezier(0.34, 0.9, 0.3, 1);
}

@keyframes zoey-discovery-cue-gear {
  from {
    transform: rotate(var(--zoey-discovery-object-angle, 0deg));
  }

  to {
    transform: rotate(calc(var(--zoey-discovery-object-angle, 0deg) + 45deg));
  }
}

/*
 * The door — a seam of light.
 *
 * Fainter and slower than the spill a press produces, because a cue is a question and the press
 * is the answer. Nothing about this cue hints at a destination: it is a light going on in a room
 * you are not being shown, and the door is shut again by the end of it.
 *
 * (The sentence here used to read "the door does not move", which was true of the light-only
 * design WORLD-004 built first and rejected on a phone. The shipped door swings.)
 */
.zoey-discovery.is-cueing .zoey-discovery-object--door .zoey-discovery-object__art {
  animation: none;
}

.zoey-discovery.is-cueing .zoey-discovery-object--door .zoey-discovery-object__leaf {
  animation: zoey-discovery-cue-door-leaf 1100ms ease-in-out;
}

.zoey-discovery.is-cueing .zoey-discovery-object--door .zoey-discovery-object__seam {
  animation: zoey-discovery-cue-door 1100ms ease-in-out;
}

/*
 * The leaf eases open a little and closes again. It ends shut, every time.
 *
 * 14 degrees is chosen against the pixel rather than the protractor: at 1.5rem the door is
 * twelve pixels wide, and this moves its free edge by about one and a half — enough to read as
 * a door at arm's length, which a light alone was not. The reviewer could only see the seam by
 * zooming in, and a cue that needs zooming is not a cue.
 */
@keyframes zoey-discovery-cue-door-leaf {
  0%,
  100% {
    transform: perspective(40px) rotateY(0deg);
  }

  45% {
    transform: perspective(40px) rotateY(-14deg);
  }
}

@keyframes zoey-discovery-cue-door {
  0%,
  100% {
    opacity: 0;
  }

  45% {
    opacity: 0.85;
  }
}

/* --- WORLD-005: the fourth cue ----------------------------------------------------- */

/*
 * The pencil — settling.
 *
 * Not a movement the pencil makes, but the end of one it has already made: it is a shade off
 * the table with its far end up, the way a pencil is in the instant after a hand lets go of it,
 * and then it is lying still. The visitor arrives for the second half of that, which is why the
 * object's personality is *it was being used a moment ago* rather than *it is about to be*.
 *
 * The rotation is about the point — 12.9% 87.1% is (3.1, 20.9) in a 24-unit box, which is where
 * the graphite is — so the far end travels and the tip does not, the way a pencil pivots on the
 * end that is touching something. Ten degrees there moves the ferrule about three pixels at
 * 1.5rem, which is the size of gesture WORLD-004's phone review found was the least that could
 * be seen at arm's length.
 *
 * `transform-origin` is set here rather than on the object, deliberately: `__art` also carries
 * the family's hover scale, and an object that grew from its own tip instead of its centre would
 * shift sideways every time a cursor touched it.
 *
 * Two timing functions, because the two halves are not the same event. The lift is fast and
 * accelerating — a hand leaving — and the settle is long and decelerating, which is gravity and
 * is the half that is actually being watched. A single ease-in-out across both would have made
 * the pencil rise as carefully as it falls, and a pencil that rises carefully is being picked up.
 */
.zoey-discovery.is-cueing .zoey-discovery-object--pencil .zoey-discovery-object__art {
  transform-origin: 12.9% 87.1%;
  animation: zoey-discovery-cue-pencil 900ms linear;
}

@keyframes zoey-discovery-cue-pencil {
  0% {
    transform: translateY(0) rotate(var(--zoey-discovery-object-angle, 0deg));
    animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
  }

  14% {
    transform: translateY(-2px) rotate(calc(var(--zoey-discovery-object-angle, 0deg) - 10deg));
    animation-timing-function: cubic-bezier(0.12, 0.7, 0.3, 1);
  }

  100% {
    transform: translateY(0) rotate(var(--zoey-discovery-object-angle, 0deg));
  }
}

/*
 * A found object never cues, and this is the belt to the scheduler's braces.
 *
 * The scheduler already refuses — `setFound()` retires an object for the session, and found
 * state is read before the first cue is ever scheduled. This rule exists because the cost of
 * being wrong is a secret that keeps waving after it has been found, which would read as a
 * bug in the *find* rather than in the cue, and because a stylesheet that states the rule is
 * a stylesheet that cannot be edited into breaking it by accident.
 *
 * Every element a cue animates is listed — `__art` for the baseline and the gear, `__seam` and
 * `__leaf` for the door, and since SL-013 the shared mark's own glint. WORLD-004 added the
 * door's, and leaving it out would have made this rule quietly incomplete: a found door could
 * still have breathed light. The star's `__glint` was listed here until its retirement.
 *
 * **Scoped to `.is-cueing`, and that part is not decoration.** The door's press spill and the
 * star's press pop animate the same elements, and a backstop written as a bare `.is-found`
 * would have switched those off too — a found door pressed again would have gone dark. It
 * survived only on cross-file specificity, which is precisely the kind of luck the reduced-
 * motion block below refuses to rely on. Naming `.is-cueing` makes this rule unable to reach
 * anything but a cue.
 *
 * `__star` itself is **deliberately** absent. Its own component animates it for the press pop,
 * which a found star is supposed to keep — `animation-name: none` there would silence the pop
 * along with the cue. The star's cue is now the shared mark, which is listed, so nothing is lost.
 */
.zoey-discovery.is-cueing .zoey-discovery-trigger.is-found .zoey-discovery-object__art,
.zoey-discovery.is-cueing .zoey-discovery-fallback[open] .zoey-discovery-object__art,
.zoey-discovery.is-cueing .zoey-discovery-trigger.is-found .zoey-discovery-object__seam,
.zoey-discovery.is-cueing .zoey-discovery-fallback[open] .zoey-discovery-object__seam,
.zoey-discovery.is-cueing .zoey-discovery-trigger.is-found .zoey-discovery-object__leaf,
.zoey-discovery.is-cueing .zoey-discovery-fallback[open] .zoey-discovery-object__leaf,
.zoey-discovery.is-cueing .zoey-discovery-trigger.is-found .zoey-discovery-object__cue::before,
.zoey-discovery.is-cueing .zoey-discovery-fallback[open] .zoey-discovery-object__cue::before {
  animation-name: none;
}

/* --- Reduced motion --------------------------------------------------------------- */

/*
 * The scheduler does not schedule a cue under `prefers-reduced-motion: reduce` — it is a
 * scheduling decision there, not a suppressed animation (WORLD-003 §6), and it responds to the
 * preference changing while the page is open.
 *
 * This block is therefore not what makes the preference work. It is what makes the result
 * certain: if a cue class ever reaches an element under this preference — a stale class on a
 * restored page, a scheduler that failed — nothing moves. A motion preference that depends on
 * one runtime behaving is not a motion preference.
 */
@media (prefers-reduced-motion: reduce) {
  .zoey-discovery.is-cueing .zoey-discovery-object__art,
  .zoey-discovery.is-cueing .zoey-discovery-object--gear .zoey-discovery-object__art,
  .zoey-discovery.is-cueing .zoey-discovery-object--pencil .zoey-discovery-object__art,
  .zoey-discovery.is-cueing .zoey-discovery-object--door .zoey-discovery-object__seam,
  .zoey-discovery.is-cueing .zoey-discovery-object--door .zoey-discovery-object__leaf {
    animation: none;
  }
}

/* --- Forced colors ---------------------------------------------------------------- */

/*
 * Nothing to do, said out loud so the next reader does not go looking.
 *
 * The cue is a transform. It carries no colour, no shadow and no meaning, so forced colors has
 * nothing to correct and the cue survives untouched — which is the right outcome, because a
 * cue that disappeared in high contrast would take an invitation away from the visitor most
 * likely to need one.
 */

/* --- SL-013: the one thing the set says in common ---------------------------------- */

/*
 * ## The shared mark
 *
 * Everything above this line is an object saying something about *itself* — the gear's tooth,
 * the door's swing, the pencil settling. All of that is kept. What the set had no way to say was
 * the thing a visitor actually needs first: **a secret is here**.
 *
 * So all six now wear one mark, in one corner: a four-point lavender glint on a warm ivory disc
 * while the secret is undiscovered, and a check in the same place once it is collected. Because
 * it is the same mark in the same position, nothing shifts when a secret changes state — the
 * disc stays and its contents change.
 *
 * It costs the markup one empty span. Everything below is pseudo-elements on that span and on
 * the object around it, which is why six objects could adopt it without six drawings.
 *
 * ## Why this does not break "a cue is an event, never a loop"
 *
 * WORLD-003's locked rules are intact, and the distinction they turn on is worth being exact
 * about, because the prototype Product reviewed *did* loop and this does not.
 *
 *   the disc and the glint   a **resting representation**, like the drawing itself. Always
 *                            there, never moving. WORLD-003 governs cues, not artwork.
 *   the pulse, the sweep,    the **cue**. One pass, finite, and only while the scheduler says
 *   the particles            `.is-cueing`. It ends and it does not repeat itself.
 *
 * The prototype animated these `infinite` because a specimen page has no scheduler to ask. In
 * the page there is one, and it already knows the six rules about found state, viewport,
 * visibility, fairness and motion preference. Handing it the cadence is what makes a loop
 * unnecessary — and it is also why a window resize cannot replay the gesture: nothing here is
 * keyed to entry, layout or size, only to one class the scheduler owns.
 */

.zoey-discovery-object {
  /*
   * Built from the palette rather than beside it. The warm ivory is a token mix and not a new
   * hex, because a second token set is a standing constraint — this is a hair cooler than the
   * prototype's #fffaf2 and reads the same against both the cream paper and the workshop.
   */
  --zoey-discovery-cue-ivory: color-mix(in srgb, var(--wp--preset--color--surface) 90%, var(--wp--preset--color--zoey-yellow));
  --zoey-discovery-cue-glint: var(--wp--preset--color--zoey-lavender);
  --zoey-discovery-cue-deep: var(--wp--preset--color--zoey-purple);
}

/*
 * ## The mark is sized independently of the object it sits on
 *
 * It was 42% of the object, which is fine at 24px and wrong at 54: a mark that scales linearly
 * with the artwork stops being a supporting cue and starts competing with the thing it is
 * pointing at. Product asked for it to stay supporting as the hero secrets grew.
 *
 * So it still grows — a mark fixed at 10px would vanish beside a 48px star — but it grows more
 * slowly and then stops. `clamp()` reads as: never smaller than 10px, never larger than 18px,
 * and 36% of the object in between.
 *
 *     object 24px   36% = 8.6   -> floors at 10px
 *     object 54px   36% = 19.4  -> caps at 18px
 *     object 56px   36% = 20.2  -> caps at 18px
 *
 * The corner offset stays proportional, because the mark should sit the same distance *into* the
 * object's corner whatever size either of them is.
 */
.zoey-discovery-object__cue {
  position: absolute;
  inset-block-start: -8%;
  inset-inline-end: -8%;
  inline-size: clamp(0.625rem, 36%, 1.125rem);
  block-size: clamp(0.625rem, 36%, 1.125rem);
  border-radius: 50%;
  background-color: var(--zoey-discovery-cue-ivory);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--zoey-discovery-cue-glint) 35%, transparent),
    0 0 6px color-mix(in srgb, var(--zoey-discovery-cue-glint) 45%, transparent);
}

/*
 * The glint. Four points rather than a dot, because a dot is a notification and a glint is a
 * gleam off something — and the waists are pulled to 36/64 rather than 40/60 because at the
 * size this is really drawn, around eleven pixels, a blunter waist read as a cross.
 */
.zoey-discovery-object__cue::before {
  position: absolute;
  inset: 20%;
  content: "";
  background-color: var(--zoey-discovery-cue-deep);
  clip-path: polygon(50% 0%, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0% 50%, 36% 36%);
}

/* The sweep: one highlight crossing the disc. Parked off the edge until a cue plays. */
.zoey-discovery-object__cue::after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  content: "";
  background-image: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.95) 50%, transparent 65%);
  background-size: 260% 100%;
  background-position: 120% 0;
}

/*
 * Three small particles, which is the ceiling SECRET-CONTRACT names. Two live on the object and
 * the third on the disc's own `::after`, as a box-shadow — so the count is three with no fourth
 * element in six places.
 */
/*
 * Excluding the Secret Map's marks, which wear `.zoey-discovery-object` too (inc/discovery/map.php
 * reuses the family's class so the drawings stay one drawing). They never cue, so the particles
 * would be inert there — but two invisible pseudo-elements on every map entry is clutter waiting
 * to become a bug, and the map is not this story's to decorate.
 */
.zoey-discovery-object:not(.zoey-secret-map__object)::before,
.zoey-discovery-object:not(.zoey-secret-map__object)::after {
  position: absolute;
  inset-block-start: 2%;
  inset-inline-end: 6%;
  inline-size: 8%;
  block-size: 8%;
  border-radius: 50%;
  content: "";
  background-color: var(--zoey-discovery-cue-glint);
  opacity: 0;
}

.zoey-discovery-object:not(.zoey-secret-map__object)::after {
  inset-inline-end: 22%;
}

/* --- The cue itself: one pass, then done ------------------------------------------- */

.zoey-discovery.is-cueing .zoey-discovery-object__cue::before {
  animation: zoey-discovery-cue-glint-pulse 1300ms ease-in-out;
}

.zoey-discovery.is-cueing .zoey-discovery-object__cue::after {
  animation: zoey-discovery-cue-sweep 1300ms ease-in-out,
    zoey-discovery-cue-particle-three 1300ms ease-out;
}

.zoey-discovery.is-cueing .zoey-discovery-object::before,
.zoey-discovery.is-cueing .zoey-discovery-object::after {
  animation: zoey-discovery-cue-particle 1300ms ease-out;
}

.zoey-discovery.is-cueing .zoey-discovery-object::after {
  animation-delay: 120ms;
}

@keyframes zoey-discovery-cue-glint-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }

  40% {
    transform: scale(1.22);
    opacity: 1;
  }
}

@keyframes zoey-discovery-cue-sweep {
  0% {
    background-position: 120% 0;
  }

  70%,
  100% {
    background-position: -40% 0;
  }
}

@keyframes zoey-discovery-cue-particle {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }

  35% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translate(0.35rem, -0.55rem) scale(0.2);
  }
}

@keyframes zoey-discovery-cue-particle-three {
  0% {
    box-shadow: 0.1rem 0 0 -0.3rem color-mix(in srgb, var(--zoey-discovery-cue-glint) 0%, transparent);
  }

  45% {
    box-shadow: 0.3rem -0.2rem 0 -0.26rem var(--zoey-discovery-cue-glint);
  }

  100% {
    box-shadow: 0.55rem -0.5rem 0 -0.32rem color-mix(in srgb, var(--zoey-discovery-cue-glint) 0%, transparent);
  }
}

/* --- The door's light, riding the swing it already had ----------------------------- */

/*
 * The same 1100ms and the same 45% peak as the leaf above, so the light and the door are one
 * event. It scales from the free edge and is clipped to the opening's arch, which is what keeps
 * it inside the doorway however far the leaf travels (see components/discovery-object.css).
 */
.zoey-discovery.is-cueing .zoey-discovery-object--door .zoey-discovery-object__glow {
  animation: zoey-discovery-cue-door-light 1100ms ease-in-out;
}

.zoey-discovery.is-cueing .zoey-discovery-object--door .zoey-discovery-object__threshold {
  animation: zoey-discovery-cue-door-threshold 1100ms ease-in-out;
}

@keyframes zoey-discovery-cue-door-light {
  0%,
  100% {
    transform: scaleX(0);
    opacity: 0;
  }

  45% {
    /*
     * 0.16 of the opening's width. The leaf turns 14 degrees under a 40px perspective, and the
     * strip it actually vacates is a little wider than cos(14deg) predicts because the near
     * edge comes toward the viewer. This is measured against the rendered frame rather than
     * derived, which is why it is a number and not an expression.
     */
    transform: scaleX(0.16);
    opacity: 0.85;
  }
}

@keyframes zoey-discovery-cue-door-threshold {
  0%,
  100% {
    opacity: 0;
  }

  45% {
    opacity: 0.7;
  }
}

/* --- Collected ---------------------------------------------------------------------- */

/*
 * The check, in the disc the glint was in. Nothing moves; the contents change.
 *
 * It is drawn with two borders rather than as a sixth copy of a tick, which is what lets the
 * star share it: the star's drawing is its own block's and has no `__mark` to position. One
 * implementation for all six was the point of the exercise.
 */
.zoey-discovery-trigger.is-found .zoey-discovery-object__cue::before,
.zoey-discovery-fallback[open] .zoey-discovery-object__cue::before {
  inset: 26% 24% 32%;
  clip-path: none;
  background-color: transparent;
  border-color: var(--zoey-discovery-cue-deep);
  border-style: solid;
  border-width: 0 0 2px 2px;
  border-end-start-radius: 1px;
  transform: rotate(-45deg);
  animation: none;
}

/*
 * **Collected stops idling**, whatever the motion setting. The secret is still there and still
 * activatable; it is simply no longer asking.
 */
.zoey-discovery-trigger.is-found .zoey-discovery-object__cue::after,
.zoey-discovery-fallback[open] .zoey-discovery-object__cue::after,
.zoey-discovery-trigger.is-found .zoey-discovery-object::before,
.zoey-discovery-trigger.is-found .zoey-discovery-object::after,
.zoey-discovery-fallback[open] .zoey-discovery-object::before,
.zoey-discovery-fallback[open] .zoey-discovery-object::after {
  animation: none;
  opacity: 0;
}

/*
 * The two marks the badge supersedes. They are still rendered by PHP — nothing that reads this
 * markup has to learn a new shape — and hidden here, in one place, so the change is one rule to
 * find and one rule to undo.
 *
 * The found-state selectors are repeated rather than relying on the bare class, because each mark
 * is *shown* by a two-class rule and a one-class rule does not outrank it. Hiding only the bare
 * class left a collected door wearing **two** checks: the badge's, and the old one still floating
 * outside it. Matching the specificity of the rule being superseded is the whole fix.
 */
.zoey-discovery-object__mark,
.zoey-easter-egg__found-mark,
.zoey-discovery-trigger.is-found .zoey-discovery-object__mark,
.zoey-discovery-fallback[open] .zoey-discovery-object__mark,
.zoey-discovery-trigger.is-found .zoey-easter-egg__found-mark,
.zoey-discovery-fallback[open] .zoey-easter-egg__found-mark {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  /*
   * The mark stays drawn and the check stays drawn. Only the gesture goes: a visitor who has
   * asked for less motion still needs to be able to find a secret.
   */
  .zoey-discovery.is-cueing .zoey-discovery-object__cue::before,
  .zoey-discovery.is-cueing .zoey-discovery-object__cue::after,
  .zoey-discovery.is-cueing .zoey-discovery-object::before,
  .zoey-discovery.is-cueing .zoey-discovery-object::after,
  .zoey-discovery.is-cueing .zoey-discovery-object--door .zoey-discovery-object__glow,
  .zoey-discovery.is-cueing .zoey-discovery-object--door .zoey-discovery-object__threshold {
    animation: none;
  }

  .zoey-discovery-object::before,
  .zoey-discovery-object::after {
    opacity: 0;
  }
}

@media (forced-colors: active) {
  /*
   * The disc becomes a plain outlined mark. A glint made of a clip-path and a glow made of a
   * box-shadow both disappear into the forced palette, so what survives has to be a border.
   */
  .zoey-discovery-object__cue {
    background-color: Canvas;
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .zoey-discovery-object__cue::before {
    background-color: CanvasText;
  }

  .zoey-discovery-object__cue::after,
  .zoey-discovery-object::before,
  .zoey-discovery-object::after {
    display: none;
  }

  .zoey-discovery-trigger.is-found .zoey-discovery-object__cue::before,
  .zoey-discovery-fallback[open] .zoey-discovery-object__cue::before {
    border-color: CanvasText;
    background-color: transparent;
  }
}
