/* A Murm's page: its tone scene with the painting, the facts, its line of forms with the growing stage (the
   game's transform beat, looping, drawn by grow.js on a canvas at a whole scale), where to meet it. */
.murm-head { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.scene { position: relative; aspect-ratio: 1; overflow: hidden; border: 3px solid var(--outline); background: radial-gradient(circle at 50% 45%, #fffaf0 0 45%, #efe2c4 100%) 50% 50% / cover; }
.scene.plain img { bottom: 0; width: 100%; }
.scene img { position: absolute; left: 50%; bottom: 4%; width: 78%; transform: translateX(-50%); image-rendering: auto; filter: drop-shadow(0 6px 4px rgb(40 33 44 / 0.35)); }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
/* .facts (the name and its facts beside a picture) is shared: wiki.css. */
.sprites { display: flex; gap: 14px; align-items: end; }
.sprites figure { display: grid; justify-items: center; font-size: 17px; opacity: 0.9; }

/* The line: each form a still (its painting cut out) with its name; arrows between; the stage beneath plays the
   beat from one to the next and loops through the whole line. The stills alone show without JS or motion. */
.line { display: flex; flex-wrap: wrap; justify-content: center; align-items: end; gap: 8px 4px; }
.line a { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--paper-ink); font-size: 22px; }
.line a.now { color: var(--gold-dark); }
.line .form { display: grid; justify-items: center; gap: 2px; font-size: 22px; opacity: 0.85; }
.line img { width: 120px; height: 120px; object-fit: contain; image-rendering: auto; }
:root:not([data-hour="dusk"]):not([data-hour="night"]) :is(.line img[src*="/dex/"], .scene.plain img) { mix-blend-mode: multiply; }   /* a painting on white sits on the parchment by day */
:root:is([data-hour="dusk"], [data-hour="night"]) .line img[src*="/dex/"] { background: var(--parchment); border-radius: 50%; }
.line .arrow { width: 24px; height: 24px; align-self: center; margin-bottom: 36px; flex: none; background: url("/assets/kit/cursor.png") 0 0 / 96px 24px; image-rendering: pixelated; opacity: 0.7; }
.stage-wrap { display: grid; justify-items: center; gap: 8px; margin-top: 14px; }
.stage { position: relative; display: grid; place-items: center; border: 3px solid var(--outline); background: var(--night-dark) radial-gradient(ellipse at 50% 100%, #3e4870 0, var(--night-dark) 70%); cursor: pointer; }
.stage canvas { display: block; image-rendering: pixelated; }
.stage .nm { position: absolute; left: 10px; top: 8px; font-size: 20px; color: var(--parchment-light); text-shadow: 0 2px 0 var(--outline); }
.stage .hint { position: absolute; right: 10px; bottom: 6px; font-size: 16px; color: var(--parchment); opacity: 0.7; }
.stage-ctl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
html:not(.js) .stage-wrap, html:not(.js) .scene canvas { display: none; }
@media (prefers-reduced-motion: reduce) { .stage-wrap { display: none; } }

/* Where to meet it: by region, each place a row with its when. */
.meet { display: grid; gap: 14px; }
.meet h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.meet ul { display: grid; gap: 6px; }
.meet li { display: grid; grid-template-columns: 190px 1fr; gap: 4px 14px; align-items: center; font-size: 20px; padding: 6px 10px; background: var(--parchment-light); color: var(--ink); border: 2px solid var(--outline); }
.meet li a { text-decoration: none; font-size: 23px; }
.meet .when { display: grid; gap: 4px; font-size: 18px; }
.meet .when li { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 4px 6px; padding: 0; background: none; border: 0; }

/* The film: a form that has its own, in a kit dialog. */
.film-dlg { width: min(860px, calc(100vw - 24px)); padding: 56px 16px 16px; color: var(--ink); border: 0; border-image: url("/assets/kit/panel.png") 8 fill / var(--slice) stretch; image-rendering: pixelated; background: none; }
.film-dlg video { display: block; width: 100%; height: auto; background: var(--night-dark); border: 3px solid var(--outline); }
.film-dlg figcaption { margin-top: 8px; font-size: 20px; }

@media (max-width: 760px) {
  .murm-head { grid-template-columns: 1fr; }
  .scene { max-width: 360px; width: 100%; justify-self: center; }
  .facts h1 { font-size: 40px; }
  .line img { width: 76px; height: 76px; }
  .facts dl { grid-template-columns: 1fr; gap: 0 0; }
  .facts dd { margin-bottom: 6px; }
  .line .arrow { margin-bottom: 30px; }
  .meet li { grid-template-columns: 1fr; }
}
