/* ==========================================================================
   The Great Divine Tarnishing, and the last screen of the page.
   The pieces are the ones the other chapters use (see scenes.css, northorn.css);
   what is new here: gold lines drawn on a canvas, a second copy of one painting
   in a different light, lines of telling in ink, and the closing picture.
   ========================================================================== */

/* ---------- Gold lines over a painting: see js/scenes/web.js ---------- */
.web{position:absolute;inset:0;z-index:1;width:100%;height:100%;pointer-events:none}

/* Over the bright city, a line of telling needs more dark behind it than over a night street. */
#akarimine .tell::before{inset:-52% -22% -58% -26%;background:radial-gradient(closest-side,rgba(7,5,8,.9),rgba(7,5,8,.66) 56%,rgba(7,5,8,0))}

/* ---------- The falling tower as it stood under the bright place, a moment before the light went down.
   It lies over the owner's painting and fades away to show it. ---------- */
.board-img.is-noon{will-change:opacity}
.wash.is-on{opacity:1}

/* ---------- A chapter title that stands above the middle, where people stand in the lower half of the picture ---------- */
.cap.headline.is-high[data-side="center"]{top:37%}

/* ---------- Telling in ink, for a picture that is nearly white ---------- */
.tell.is-ink,.tell.is-ink p:not(.eyebrow){color:#22160e}
.tell.is-ink p:not(.eyebrow){text-shadow:0 0 20px rgba(255,251,240,.95),0 0 5px rgba(255,251,240,.85)}
.tell.is-ink::before{background:radial-gradient(closest-side,rgba(255,250,238,.74),rgba(255,250,238,.42) 55%,rgba(255,250,238,0))}
.tell.is-ink .eyebrow{color:#8a2a1c}
/* the page's last sentence stands a little larger than the one before it */
.tell .tell-last{font-size:clamp(1.4rem,2.3vw,2.05rem)!important;line-height:1.26!important;font-style:italic;color:var(--bone)!important}

/* ==========================================================================
   The last screen: the closing picture settles as it comes up, and the novel is offered under it
   ========================================================================== */
.finale{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-height:128vh;min-height:128svh;
  padding:20vh clamp(18px,6vw,80px) clamp(14px,2.4vh,26px);overflow:hidden;overflow:clip;isolation:isolate;text-align:center;background:#07060a;color:var(--bone)}
.finale-art{position:absolute;inset:0;z-index:-1}
.finale-art img{width:100%;height:100%;object-fit:cover;object-position:34% 30%;transform-origin:50% 42%;will-change:transform}
.finale-art::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(0deg,rgba(7,6,10,.98) 0%,rgba(7,6,10,.94) 19%,rgba(7,6,10,.8) 40%,rgba(7,6,10,.4) 62%,rgba(7,6,10,.06) 80%,rgba(7,6,10,.3) 92%,rgba(7,6,10,.92) 100%)}
.finale-inner{width:min(880px,100%)}
/* the credits close the page on the picture itself, compact, with no band of their own:
   the crest and the links on one row, the legal lines run together beneath */
.finale .site-foot{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.4rem 2.2rem;
  margin-top:clamp(22px,4vh,44px);padding:0;background:none;border-top:0;color:rgba(213,190,168,.72);text-shadow:0 1px 10px rgba(6,4,8,.9)}
.finale .site-foot::before{content:"";flex:0 0 100%;height:1px;margin-bottom:clamp(10px,1.8vh,18px);              /* a row of its own */
  background:linear-gradient(90deg,transparent,rgba(222,180,108,.32),transparent) center/min(420px,60%) 1px no-repeat}
.finale .foot-brand{font-size:.86rem}
.finale .foot-brand img{width:30px;height:30px}
.finale .foot-nav{margin:0;gap:.3rem 1.6rem}
.finale .foot-nav a{font-size:.66rem}
.finale .foot-legal{flex:0 0 100%;display:block;max-width:none;margin:.35rem 0 0;padding-inline:max(0px,calc(50% - 540px));font-size:.8rem;line-height:1.55}   /* a row of its own, about 1080px of text wide */
.finale .foot-legal p{display:inline}
.finale .foot-legal p:not(:last-child)::after{content:" · ";color:rgba(222,180,108,.5)}
.finale .eyebrow{color:var(--rose);letter-spacing:.4em}
.finale-title{margin:.95rem 0 0;font:500 clamp(2.5rem,6.2vw,5.6rem)/1 var(--f-display);letter-spacing:.05em;text-transform:uppercase;color:#fff5e6;
  text-shadow:0 2px 30px rgba(7,5,9,.8)}
/* her two names: the one written in the Light Nation's characters, the other in the Dark Nation's runes */
.finale-names{display:flex;justify-content:center;align-items:center;gap:1.1em;margin-top:1rem;color:var(--gold-pale)}
.finale-names [lang="ja"]{font:400 clamp(1.05rem,1.5vw,1.3rem)/1 var(--f-jp);letter-spacing:.45em;margin-right:-.45em}
.finale-names .is-rune{font:400 clamp(.82rem,1.15vw,1rem)/1 var(--f-rune);letter-spacing:.42em;margin-right:-.42em;color:var(--rose)}
.finale-names i{font-style:normal;font-size:.6rem;color:var(--gold)}
.finale-lede{max-width:640px;margin:1.25rem auto 1.75rem;font:italic 400 clamp(1.18rem,1.8vw,1.5rem)/1.45 var(--f-display);color:#e9decf}
.finale-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.9rem 1.1rem}
/* the second way in: Northorn's colours */
.btn.is-north{color:#f1dfe3;border-color:rgba(210,54,79,.7);outline-color:rgba(210,54,79,.24)}
.btn.is-north::before{background:linear-gradient(180deg,#d2364f,#8a142a)}
.btn.is-north:hover,.btn.is-north:focus-visible{color:#fff3f5;border-color:#e0627a;box-shadow:0 0 34px rgba(210,54,79,.32)}
.btn.is-north:focus-visible{outline:1px solid rgba(255,235,240,.45);outline-offset:-6px}
.finale-more{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem 1.1rem;margin-top:1.9rem;
  font:600 .72rem/1 var(--f-display);letter-spacing:.26em;text-transform:uppercase}
.finale-more a{padding:.5em 0;text-decoration:none;color:var(--chrome-dim);transition:color .3s}
.finale-more a:hover,.finale-more a:focus-visible{color:var(--gold-hi)}
.finale-more span{color:var(--gold);font-size:.6rem}

@media (max-width:760px){
  .finale{min-height:118vh;min-height:118svh;padding-top:24vh}
  .finale-art img{object-position:30% 30%}
  .finale-title{font-size:clamp(2.1rem,10.4vw,3.4rem)}
  .finale-actions .btn{width:min(100%,21rem)}
  .tell .tell-last{font-size:1.32rem!important}
}
