/* ==========================================================================
   The road north, the Northorn film, the arrival, and the name.
   The shared pieces are in scenes.css.
   ========================================================================== */
.road .stage,.north .stage{background:#07080c}
/* the light going out of the picture as the road climbs */
.road-dark{position:absolute;inset:0;z-index:4;opacity:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(6,6,12,.1),rgba(6,6,12,.5) 60%,rgba(6,6,12,.62))}

/* ---------- The film of Northorn. Like the hero's, it is never moved or scaled while it plays. ---------- */
.film .stage{background:#07080c}
.film-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%;background:#07080c}
.film-shade{position:absolute;inset:0;pointer-events:none;background:
  radial-gradient(56% 42% at 50% 47%,rgba(6,6,10,.58),rgba(6,6,10,0) 72%),
  linear-gradient(180deg,rgba(6,6,10,.6) 0%,rgba(6,6,10,0) 26%,rgba(6,6,10,0) 56%,rgba(6,6,10,.9) 100%)}
.film-title{left:50%;top:47%;translate:-50% -50%;width:max-content;max-width:94vw;text-align:center;color:var(--bone)}
.film-title h2{margin:0;font:500 clamp(3.4rem,12.5vw,11rem)/.92 var(--f-gothic);letter-spacing:.05em;color:#eee5df;
  text-shadow:0 0 70px rgba(158,27,50,.6),0 4px 30px rgba(4,4,8,.85)}
.film-rune{margin:0 -.9em 1.5rem 0;font:400 clamp(.8rem,1.25vw,1.1rem)/1 var(--f-rune);letter-spacing:.9em;color:var(--rose)}
.film-sub{margin:1.5rem -.6em 0 0;display:flex;align-items:center;justify-content:center;gap:1.4em;
  font:600 clamp(.72rem,1.05vw,.92rem)/1 var(--f-display);letter-spacing:.6em;text-transform:uppercase;color:var(--parch)}
.film-sub::before,.film-sub::after{content:"";width:clamp(28px,6vw,96px);height:1px;background:linear-gradient(90deg,transparent,var(--rose))}
.film-sub::after{background:linear-gradient(90deg,var(--rose),transparent)}

/* ---------- The name: love burns away, and darkness takes its shape ---------- */
/* --f: how much of her present self is shown (the hold to remember takes it down to 0, for 闇 and for Yamiko) */
.name .stage{--f:1;background:radial-gradient(ellipse at 30% 50%,#2a1922,#0b080d 70%)}
/* the painting is darkened on the left, where the name stands, and along the foot of the screen, so the glowing kanji
   and the words read; the rain-lit middle, where she stands before the clerk, is left as it is */
.name-shade{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(7,5,9,.8) 0%,rgba(7,5,9,.6) 22%,rgba(7,5,9,.18) 40%,rgba(7,5,9,0) 52%),
             linear-gradient(0deg,rgba(7,5,9,.5),rgba(7,5,9,0) 26%)}
/* as the new name is given, a crimson bloom spreads behind it */
.name-glow{position:absolute;inset:0;opacity:0;pointer-events:none;
  background:radial-gradient(ellipse 40% 62% at 22% 50%,rgba(122,14,40,.5),rgba(70,8,24,.22) 58%,rgba(0,0,0,0) 82%)}
/* Aiko and Yamiko on the same spot; which one shows is set from the scroll (no transition), and while the fire goes
   through them both are hidden under the canvas that burns one into the other. Pressing either of them also remembers. */
.fig.is-still.name-fig{pointer-events:auto;cursor:pointer;transition:none;-webkit-tap-highlight-color:transparent;touch-action:pan-y}
.name-fig.is-yami{opacity:0}
.name-fig.is-yami .fig-art{opacity:var(--f)}
.name-fig.is-mem .fig-art{opacity:0;filter:blur(12px)}

/* the fire is drawn on these while it burns (burn.js) */
.name canvas[class^="burn-"]{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.name-side{position:absolute;left:clamp(16px,4vw,90px);top:50%;translate:0 -50%;width:min(34vw,480px);display:grid;justify-items:center}   /* the name stands to her left */
.kanji{position:relative;display:grid;place-items:center;width:100%;height:min(52vh,480px);cursor:pointer;outline:none;user-select:none;
  font-family:"Yu Mincho","YuMincho","Hiragino Mincho ProN","Noto Serif JP","Noto Serif CJK JP","LD Yuji",serif;font-size:min(38vh,360px);line-height:1;
  -webkit-tap-highlight-color:transparent;touch-action:pan-y}
.kanji:focus-visible{outline:1px solid rgba(242,220,170,.5);outline-offset:8px;border-radius:8px}
.k{grid-area:1/1;display:block}
.k-ai{color:#f6d7c2;text-shadow:0 0 40px rgba(255,190,170,.45);filter:opacity(var(--f))}
.k-yami{color:#2a0d16;-webkit-text-stroke:1px #c0475a;text-shadow:0 0 40px rgba(220,40,70,.55);filter:opacity(var(--f));opacity:0}
/* 闇 gives way completely before 愛 returns, so the two never sit on top of each other */
.kanji.is-remembering .k-yami{-webkit-text-stroke-color:transparent}
.k-mem{color:#ffe1d2;text-shadow:0 0 50px rgba(255,190,170,.75),0 0 12px rgba(255,220,200,.6);opacity:0;filter:blur(10px);pointer-events:none}
.name-read{display:grid;margin-top:.5rem;font:600 .95rem/1 var(--f-display);letter-spacing:.34em;text-transform:uppercase}
.nr{grid-area:1/1;text-align:center;color:#f2dcaa}
.nr i{font-style:italic;text-transform:none;letter-spacing:.06em;opacity:.9}
.nr-yami{color:#ff8a9c;opacity:0}
.name-hint{margin:1.2rem 0 0;font:italic 400 1rem/1 var(--f-display);letter-spacing:.05em;color:rgba(242,220,170,.78);pointer-events:none;opacity:0;visibility:hidden}
.name-title{margin:0 0 .8rem;font:400 clamp(2rem,3.3vw,3rem)/1 var(--f-jp);letter-spacing:.32em;color:#f6d7c2}
.name-title.is-dark{color:#ff8a9c}
.name .tell{width:min(27rem,36vw)}                 /* low on the right, under the clerk at his desk */

@media (max-width:760px){
  .film-title h2{letter-spacing:.03em}
  /* phones: the name above her head, she below it, the words at the foot; the shade comes from the top and the foot */
  .name-side{left:50%;top:19%;translate:-50% -50%;width:88vw}
  .kanji{height:24vh;font-size:19vh}
  .name-shade{background:linear-gradient(180deg,rgba(7,5,9,.78),rgba(7,5,9,.3) 34%,rgba(7,5,9,0) 46%),linear-gradient(0deg,rgba(7,5,9,.72),rgba(7,5,9,0) 32%)}
  .name-glow{background:radial-gradient(ellipse 70% 30% at 50% 20%,rgba(122,14,40,.5),rgba(70,8,24,.2) 60%,rgba(0,0,0,0) 85%)}
  .name-read{font-size:.78rem}
  .name .tell{width:auto}
  .name-title{font-size:1.7rem;margin-bottom:.5rem}
}
