/* ══════════════════════════════════════════════════════════════
   TEMPORARY — The Royal Progress to the Far East (MZW, Sept 2026)
   Runs while Spudnick is away in Japan (~2 weeks).
   TO REMOVE: delete japan.css, japan.js, the <link>/<script> tags,
   and the #japan block in index.html. Nothing else references these.
   ══════════════════════════════════════════════════════════════ */

/* ── The decree notice ─────────────────────────────────────── */
.progress-notice {
  max-width: 920px;
  margin: 0 auto 4rem;
  padding: 2.4rem 2.8rem;
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  text-align: center;
  position: relative;
}
.progress-notice::before,
.progress-notice::after {
  content: "⛩";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 2.1rem;
  line-height: 1;
}
.progress-notice::before { left: .2rem; }
.progress-notice::after  { right: .2rem; }

.progress-notice p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 1.1rem;
  text-shadow: 0 0 18px rgba(201, 162, 39, .28);
}
.progress-notice em {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem);
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream);
  max-width: 54ch;
  margin: 0 auto;
}

/* ── The chase strip ───────────────────────────────────────── */
#japan {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 186px;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
  /* only present while the page is moving — never sits on top of the decree
     while you are trying to read it */
  opacity: 0;
  transition: opacity .5s ease;
}
#japan.is-running { opacity: 1; }

/* a road for them to run along, so they don't just sit on top of the decree */
#japan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(13, 10, 7, .94) 0%,
    rgba(13, 10, 7, .78) 42%,
    rgba(13, 10, 7, 0) 100%);
}
#japan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 1px;
  background: linear-gradient(to right,
    transparent, var(--gold-deep) 18%, var(--gold-deep) 82%, transparent);
  opacity: .5;
}

#japan .runner,
#japan .petal { z-index: 1; }

#japan .runner {
  position: absolute;
  bottom: 14px;
  left: 0;
  will-change: transform;
  transform: translate3d(-40vw, 0, 0);
}
#japan .runner img {
  display: block;
  height: 118px;
  width: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}

/* no mirroring anywhere — the art is drawn facing left, so the whole
   chase runs right-to-left and everyone keeps the gaze they were drawn with */

#japan .house {
  position: absolute;
  bottom: 10px;
  right: 4vw;
  left: auto;
  transform: none;
}
#japan .house img {
  display: block;
  height: 168px;
  width: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6));
}

#japan .petal {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 7px;
  border-radius: 60% 0 60% 0;
  background: #c98b8b;
  opacity: .5;
  will-change: transform;
}

/* keep the strip clear of the footer fine print on short screens */
@media (max-width: 640px) {
  #japan { height: 112px; }
  #japan .runner img { height: 68px; }
  #japan .runner { bottom: 8px; }
  #japan .house img { height: 96px; }
  #japan .petal { width: 5px; height: 5px; }
  .progress-notice { padding: 1.8rem 1.4rem; }
  .progress-notice::before, .progress-notice::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #japan { display: none; }
}
