/* ── THE WAY ON for pages that do not load styles.css (schools.html, 2026-11-10).
   The block below is styles.css's way-on block VERBATIM (itself verbatim from
   mukashi-app app/globals.css, components/way-on-light): change all three
   together. Plus the site's seamless-mote rule for a dark, flat sky. ── */
/* ── THE WAY ON: the one attention style (components/way-on-light.tsx) ────
   Hoshi's star motes drifting up out of the thing a child is drawn to, and a
   warm pool of light on the surface under it. No ring, no outline, no edge.
   Tom, 2026-11-02: "This is now our go to style." */
/* Each piece sits above a scene's own layers (a tour's dimming veil is z-1,
   the hotspot svg z-2) while its WRAPPER stays out of the stacking order, so
   the pool still blends with the painting. */
.way-on-pool,
.way-on-halo,
.way-on-glow,
.way-on-paper,
.way-on-mote {
  z-index: var(--wo-z, 3);
}
.way-on-pool {
  position: absolute;
  left: -60%;
  right: -60%;
  bottom: -18%;
  height: 46%;
  border-radius: 50%;
  /* colour-dodge with a pale warm light: it brightens what it falls on the
     way lamplight does (screen added almost nothing to a warm room). */
  background: radial-gradient(closest-side, rgba(255, 216, 150, 0.74), rgba(246, 176, 86, 0.4) 52%, rgba(246, 176, 86, 0) 100%);
  mix-blend-mode: color-dodge;
  filter: blur(12px);
  animation: way-on-pool 3.2s ease-in-out infinite;
}
.way-on-halo {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 226, 168, 0.62), rgba(246, 176, 86, 0.3) 55%, rgba(246, 176, 86, 0) 100%);
  mix-blend-mode: screen;
  filter: blur(10px);
  animation: way-on-pool 3.2s ease-in-out infinite;
}
/* On a BRIGHT scene (the Schoolhouse shelf's cream paper) a screened light
   adds nothing, so the warmth is MULTIPLIED, as on the map's paper: amber
   all the way to the middle, fading to nothing, no band and so no edge. */
.way-on-paper {
  --wo-blur: 8px;
  position: absolute;
  inset: -75%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 190, 96, 0.85), rgba(255, 190, 96, 0.62) 45%, rgba(245, 166, 35, 0.22) 76%, rgba(245, 166, 35, 0) 100%);
  mix-blend-mode: multiply;
  filter: blur(8px);
}
/* The menu door's pool spills out into the room (leftward, onto the boards
   in front of it) rather than sitting centred under it. */
.way-on-pool-door {
  left: -95%;
  right: -5%;
  bottom: -24%;
  height: 40%;
  transform-origin: 70% 50%;
}
/* The thing ITSELF glows, embers coming off it (a book, a tour's object).
   A soft CORONA, gathered round the object's edges and blurred so far it has
   no edge of its own: the object's colours stay untouched in the middle (a
   bright centre washed a red book pale; colour-dodge turned it yellow-green),
   and the light reads as coming OFF it. Warm and saturated, because a pale
   light screened onto a warm wall adds almost nothing. */
.way-on-glow {
  position: absolute;
  inset: -95%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 168, 52, 0.42) 0%, rgba(255, 170, 56, 0.5) 30%, rgba(250, 160, 40, 0.3) 58%, rgba(245, 150, 30, 0) 100%);
  mix-blend-mode: screen;
  filter: blur(9px);
  animation: way-on-pool 2.8s ease-in-out infinite;
}
@keyframes way-on-pool {
  0%, 100% { opacity: 0.7; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}
.way-on-mote {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf0 0%, #ffe7ad 40%, rgba(245, 166, 35, 0) 72%);
  box-shadow: 0 0 10px 4px rgba(255, 220, 150, 0.9), 0 0 24px 9px rgba(245, 166, 35, 0.45);
  opacity: 0;
  animation-name: way-on-mote;
  animation-timing-function: cubic-bezier(0.4, 0.1, 0.5, 1);
  animation-iteration-count: infinite;
}
/* The SVG form (WayOnSvgMotes): a circle in the drawing's own units, so it
   scales about its own centre and drifts in user units. */
.way-on-svg-mote {
  position: static;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes way-on-mote {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  18% { opacity: 1; }
  70% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}
/* THE RAMP (Tom's timeline, 2026-11-02; WAY_ON_RAMP_MS mirrors these
   numbers). Untouched, the light gathers: a second wave of motes fades in
   from 3 s, a third, livelier one from 5.5 s, and the glow swells from 3 s
   to 7 s; at 9 s the beacon is sent. A wave is its own layer at z 3 (an
   animating opacity makes a stacking context, and motes need no blend), so
   the zone's wrapper stays out of the stacking order for the pool. */
.way-on-wave {
  position: absolute;
  inset: 0;
  z-index: var(--wo-z, 3);
  pointer-events: none;
  opacity: 0;
}
.way-on-wave-2 { animation: way-on-wave-in 3s ease-in 3s both; }
.way-on-wave-3 { animation: way-on-wave-in 3s ease-in 5.5s both; }
@keyframes way-on-wave-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.way-on-pool { --wo-blur: 12px; }
.way-on-halo { --wo-blur: 10px; }
.way-on-glow { --wo-blur: 9px; }
.way-on-pool,
.way-on-halo,
.way-on-glow,
.way-on-paper {
  animation-name: way-on-pool, way-on-swell;
  animation-duration: 3.2s, 4s;
  animation-timing-function: ease-in-out, ease-in;
  animation-delay: 0s, 3s;
  animation-iteration-count: infinite, 1;
  animation-fill-mode: none, both;
}
.way-on-glow { animation-duration: 2.8s, 4s; }
/* A multiplied light DEEPENS as it swells; brightening it would fade it. */
.way-on-paper { animation-name: way-on-pool, way-on-swell-paper; }
@keyframes way-on-swell-paper {
  from { filter: blur(var(--wo-blur)) saturate(1); }
  to { filter: blur(calc(var(--wo-blur) + 2px)) saturate(1.5); }
}
@keyframes way-on-swell {
  from { filter: blur(var(--wo-blur)) brightness(1); }
  to { filter: blur(calc(var(--wo-blur) + 2px)) brightness(1.35); }
}
/* REDUCE MOTION ONLY (Tom, 2026-11-02: "ONLY do those who have reduced
   motion on"). Moving motes are the whole signal for some targets, so under
   the setting the light holds STILL instead of vanishing: the first wave's
   motes stay lit where they start, a soft still halo marks the thing, and
   the later waves (which only add motion) stay away. Nobody without the
   setting ever sees `.way-on-still`. */
.way-on-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .way-on-wave { display: none; }
  .way-on-mote {
    animation: none;
    opacity: 0.85;
    transform: scale(0.9);
  }
  .way-on-still {
    display: block;
    position: absolute;
    inset: -40%;
    z-index: var(--wo-z, 3);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 220, 150, 0.5), rgba(245, 166, 35, 0.26) 55%, rgba(245, 166, 35, 0) 100%);
    filter: blur(8px);
  }
  .way-on-pool, .way-on-halo, .way-on-glow, .way-on-paper { animation: none; }
}

.way-on-seamless .way-on-mote {
  background: radial-gradient(circle, #fffdf0 0%, #ffe7ad 50%, rgba(255, 220, 150, 0.9) 100%);
}
