/* 絵巻 the front page: one hand-scroll (L) dyed on furoshiki cloth (M), read through clean labels + chips (I). System: WORLD.md.
   Rollback: ../retired/index-door-pre-emaki1.html + home-door-pre-emaki1.css + lineart-door-pre-emaki1.js (and drop emaki.js/.css). */
.emaki{overflow-x:clip /* the hidden names of the other strips must not widen the page */;--cloth:#1c1613;--rev:#3a2f27;--thread:rgba(239,227,207,.42);--gut:clamp(20px,4vw,64px);position:relative;padding:22px var(--gut) 48px}
.emaki canvas{display:block;image-rendering:pixelated}
.emaki a{text-decoration:none;color:inherit}
.view.home.on{animation-name:unroll}@keyframes unroll{from{opacity:0}} /* opacity only: a transform would trap the bar */

/* the scroll HANGS (vert1, his words: "the desktop version should be vertical scroll too"): one column of cloth, top to bottom, on every
   screen; the page itself scrolls (wheel, trackpad, keys, scrollbar: all native, nothing captured). Rods across the top and bottom. */
.sc{outline:0}
.strip{display:flex;flex-direction:column;max-width:1160px;margin:0 auto;position:relative}
.rod{flex:none;height:20px;margin:0 -8px;position:relative;z-index:2;background:linear-gradient(#24180f,#6b4b30 42%,#3b2819 70%,#1d140d);box-shadow:0 0 22px rgba(0,0,0,.7)}
.rod::before,.rod::after{content:"";position:absolute;top:3px;bottom:3px;width:22px;background:linear-gradient(#5a3f28,#9a7550 45%,#5a3f28);border-radius:3px}
.rod::before{left:-20px}.rod::after{right:-20px}
.strip>.rod:last-child{height:26px} /* the weighted roller at the foot (軸) */

/* the cloth: dark ground, seigaiha dyed in each place's colour, stitched down both edges */
.slip,.stg,.sfoot{position:relative;flex:none;background-color:var(--cloth)}
.slip::before,.stg::before,.sfoot::before,.slip::after,.stg::after,.sfoot::after{content:"";position:absolute;top:0;bottom:0;width:1px;pointer-events:none;
  background:repeating-linear-gradient(180deg,var(--thread) 0 2px,transparent 2px 6px)}
.slip::before,.stg::before,.sfoot::before{left:8px}.slip::after,.stg::after,.sfoot::after{right:8px}

/* 題簽 the title slip, compact (land1, his words: "way too much dead space for no reason like surely can be compacted"): one row,
   read like a dictionary entry: the mark, the headword standing beside its gold cross, then its senses and the line. Rollback:
   ../retired/emaki-pre-land1.css */
.slip{display:flex;justify-content:center;align-items:center;gap:30px;padding:34px 48px 26px}
.emw{position:relative;z-index:31;display:block;flex:none;transform-origin:50% 50%}
.emw::before{content:"";position:absolute;left:50%;top:50%;width:420px;height:300px;margin:-150px 0 0 -210px;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--ac) 22%,transparent),transparent);animation:breathe 5s ease-in-out infinite;opacity:var(--fade,1)}
@keyframes breathe{50%{opacity:.72}}
.ttl{display:flex;gap:12px;flex:none;align-items:stretch}
.slip .daisen{writing-mode:vertical-rl;font:800 56px/1 var(--min);letter-spacing:.18em;padding:12px 0 2px;
  background-image:linear-gradient(180deg,var(--ink) 40%,color-mix(in srgb,var(--ac) 70%,var(--ink)));-webkit-background-clip:text;color:transparent}
/* 十 the cross beside the title (his ask: "subtle"): one fine gold thread, as tall as the 賜物 column, the arm a third of the way down;
   the thread is twisted (two golds alternating, like couched 金糸) and rests with a soft glow. intro.js lifts the glow at the end. */
.crx{position:relative;display:block;flex:none;width:17px;margin:14px 0 4px;opacity:.82;filter:drop-shadow(0 0 3px rgba(244,197,82,.38))}
.crx i,.crx b{position:absolute;background:repeating-linear-gradient(var(--tw,180deg),#e8bf5e 0 2px,#a8843c 2px 3px)}
.crx i{left:8px;top:0;bottom:0;width:1px}
.crx b{--tw:90deg;left:0;right:0;top:27%;height:1px}
.crx::before{content:"";position:absolute;left:50%;top:27%;width:56px;height:120px;margin:-40px 0 0 -28px;pointer-events:none;
  background:radial-gradient(closest-side,rgba(244,197,82,.1),transparent);animation:crx 6s ease-in-out infinite}
@keyframes crx{50%{opacity:.5}}
.pre{display:flex;flex-direction:column;align-items:flex-start;position:relative}
.emk{display:block;flex:none;width:96px;height:96px;overflow:hidden}.emk svg{display:block;width:100%;height:100%}
.ro,.vr,.dg small,.r,.back,.nx .nl{font-family:var(--px);letter-spacing:.2em}
.ro{font-size:10.5px;color:color-mix(in srgb,var(--ink2) 22%,var(--dim));flex:none}
.mean{list-style:none;padding:0;margin:8px 0 0;counter-reset:m;font:13.5px/1.55 var(--min);color:color-mix(in srgb,var(--ink2) 40%,var(--dim));white-space:nowrap} /* 5:1 on the slip (was 4:1) */
.mean li{counter-increment:m;display:flex;gap:10px}.mean li::before{content:counter(m);font:10px/2.2 var(--px);color:var(--ac);flex:none}
.mean i{font-style:normal;color:var(--ink)}
.dx{font:600 20px/1.45 var(--min);color:var(--ink);margin:12px 0 0;width:max-content;max-width:430px;text-wrap:balance} /* 1 Peter 4:10 (BSB): wraps to 3 lines beside the mark, never one long line */
.vr{font-size:10px;color:color-mix(in srgb,var(--ink2) 22%,var(--dim));margin-top:6px}

/* 題簽 narrower (row3, his words: "the scaling / formatting of the short horizontal version of the top part is odd why all left? surely
   better way to do?"): under 1000px the slip becomes ONE centred axis, like the title of a hanging scroll: the reading over the
   headword (Jisho), the mark and 賜物 with its cross side by side as one emblem on the centre line, then the two senses, a short
   stitch, and the verse centred under it with its reference (Kinfolk's centred issue head). Nothing hugs the left edge. */
@media (max-width:999px){
  .slip{display:grid;grid-template-columns:minmax(0,1fr) auto auto minmax(0,1fr);grid-template-areas:". ro ro ." ". emw ttl ." "mean mean mean mean" "dx dx dx dx" "vr vr vr vr";
    justify-items:center;align-items:center;gap:0 22px;padding:24px 40px 20px}
  .pre{display:contents}
  .ro{grid-area:ro;margin-bottom:10px}
  .emk{width:80px;height:80px}.slip .daisen{font-size:46px;padding:8px 0 0}
  .emw{grid-area:emw;justify-self:end}.ttl{grid-area:ttl;justify-self:start}
  .mean{grid-area:mean;display:flex;flex-wrap:wrap;justify-content:center;gap:2px 26px;margin-top:12px;max-width:100%}
  .dx{grid-area:dx;text-align:center;width:auto;max-width:620px;font-size:18px;margin-top:10px;padding-top:14px;position:relative}
  .dx::before{content:"";position:absolute;top:0;left:50%;width:44px;margin-left:-22px;height:1px;background:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ac) 70%,transparent) 0 2px,transparent 2px 5px)}
  .vr{grid-area:vr;margin-top:6px}
}

/* 目録 the row (row1, his words: "morphing the sections listed nicely there like to display one at a time yk intuitively like when we
   inspect one"): the six places, the ONE list on the scroll. One is chosen: its cell widens into the place's panel; the other five hang
   beside it as narrow strips (kanji, a window on their spot in the toile, the name down the spine), still a tap away. Switching is
   real layout: the chosen cell's share of the row grows while the old one's shrinks (flex-grow, 0.64s cloth ease), its window opens
   out into the drawing, kanji + name glide to the panel's corner, the head line rises in. Scrolling forms the kanji (and the chosen
   name) up into the bar (emaki.js measure/frame, land1). Refs: Material 3 carousel hero (chosen wide, rest narrow strips still in
   reach), Family (the tapped thing itself grows into the panel), Stripe Press (one at a time, its spine row, one plain OPEN). */
/* row2 (his words: "fix them to be more intuitive readible and like the OPEN button is absolutely ass"): every strip is a tile you can
   see is a tap: its kanji over its name (level, legible, the bar's own pairing), then a framed window on its spot in the toile; the
   panel's words sit on undyed cloth, the dye and the drawing stay to the right; one stitched name-tape action in the place's colour
   says what it does ("Read the word ↓"), the count quiet beside it (Apple TV's one filled verb + caption). Selection changes ease
   through --so; the scroll's dissolve (--fa/--fb, emaki.js frame) is never eased, so nothing lags the scroll. Rollback: ../retired/*-pre-row2.* */
@property --so{syntax:'<number>';inherits:false;initial-value:1}
.idx{--ez:cubic-bezier(.22,.8,.24,1);--sl:80px;--rowh:288px;--pw:340px;--dw:320px;--dh:192px;--ww:48px;--wh:144px;--wt:98px;
  position:relative;display:flex;height:var(--rowh);padding:0 18px;background-color:var(--cloth);
  background-image:repeating-linear-gradient(90deg,var(--thread) 0 2px,transparent 2px 6px);background-size:calc(100% - 32px) 1px;background-position:16px 0;background-repeat:no-repeat}
.idx::before,.idx::after{content:"";position:absolute;top:0;bottom:0;width:1px;pointer-events:none;background:repeating-linear-gradient(180deg,var(--thread) 0 2px,transparent 2px 6px)}
.idx::before{left:8px}.idx::after{right:8px}
.ix{position:relative;flex:0 0 var(--sl);min-width:0;transition:flex-grow .64s var(--ez)}
.ix.sel{flex-grow:1}
/* the cell's cloth: a tile with an edge in its colour; plain cloth behind the words, its dye only behind the picture */
.ix::before{content:"";position:absolute;inset:10px 5px;border-radius:3px;pointer-events:none;--so:.55;opacity:calc(var(--so)*var(--fb,1));transition:--so .35s var(--ez),box-shadow .3s;
  background:linear-gradient(180deg,var(--cloth) 84px,color-mix(in srgb,var(--cloth) 40%,transparent) 120px,transparent),var(--dye) 0 0/32px 24px;image-rendering:pixelated;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 28%,transparent)}
.ix.sel::before{--so:.85;background:linear-gradient(90deg,var(--cloth) calc(var(--pw) + 34px),transparent calc(var(--pw) + 150px)),radial-gradient(60% 70% at calc(100% - var(--dw)/2 - 24px) 50%,color-mix(in srgb,var(--rc) 16%,transparent),transparent),var(--dye) 0 0/32px 24px;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 50%,transparent)}
.ix.hi::before,.ix:focus-within::before{--so:1;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 70%,transparent),0 0 18px -6px var(--rc)}
.hit{position:absolute;inset:0;z-index:1;outline:0}
.hit:focus-visible{outline:2px solid var(--rc);outline-offset:-6px;border-radius:4px}
/* .cl clips the drawing and the panel's words to the cell (the kanji and names stay outside it, free to fly to the bar) */
.cl{position:absolute;inset:0;overflow:hidden;pointer-events:none}
/* its drawing: ONE canvas. A strip shows a framed window of it around the pin; chosen, the window opens out into the whole drawing */
.th{position:absolute;display:block;pointer-events:none;left:calc(50% - var(--pinx));top:calc(var(--wt) - var(--wy));--so:.8;opacity:calc(var(--so)*var(--fa,1));
  clip-path:inset(var(--wy) calc(var(--dw) - var(--pinx) - var(--ww)/2) calc(var(--dh) - var(--wy) - var(--wh)) calc(var(--pinx) - var(--ww)/2) round 3px);
  transition:left .64s var(--ez),top .64s var(--ez),clip-path .64s var(--ez),--so .4s}
.ix.sel .th{left:calc(100% - var(--dw) - 26px);top:48px;clip-path:inset(0 0 0 0 round 3px);--so:1}
.ix.hi .th{--so:1}
.cl::after{content:"";position:absolute;left:calc(50% - var(--ww)/2);top:var(--wt);width:var(--ww);height:var(--wh);border-radius:3px;pointer-events:none;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 40%,transparent);opacity:var(--fa,1);transition:opacity .2s}
.ix.sel .cl::after{opacity:0}
.th canvas{display:block}
.dt{position:absolute;width:6px;height:6px;margin:-3px 0 0 -3px;background:var(--rc);box-shadow:0 0 10px var(--rc);animation:dt 3.2s ease-in-out infinite}
@keyframes dt{50%{box-shadow:0 0 16px var(--rc),0 0 4px var(--rc)}}
/* kanji + name: centred on a strip, in the panel's corner once chosen (the kanji is the shared thing that glides) */
.il{position:absolute;left:calc(50% - 15px);top:22px;display:flex;align-items:baseline;gap:12px;white-space:nowrap;pointer-events:none;transition:left .64s var(--ez),top .64s var(--ez)}
.ix.sel .il{left:30px;top:26px}
.il i,.il b,.sp{display:block;position:relative;z-index:31;transform-origin:50% 50%;will-change:transform} /* over the bar's glass while they fly */
.il i{font:800 30px/1 var(--min);font-style:normal;color:var(--rc);transition:font-size .64s var(--ez);
  text-shadow:0 0 calc(10px + var(--gl,0)*16px) color-mix(in srgb,var(--rc) calc(35% + var(--gl,0)*50%),transparent);opacity:calc(1 - var(--e,0)*.3)}
.ix.sel .il i{font-size:42px;text-shadow:0 0 calc(18px + var(--gl,0)*16px) color-mix(in srgb,var(--rc) 55%,transparent)}
.ix.hi .il i,.ix:focus-within .il i{transition:font-size .64s var(--ez),text-shadow .3s;text-shadow:0 0 18px color-mix(in srgb,var(--rc) 85%,transparent),0 0 3px var(--rc)}
.il b{font:600 28px/1 var(--min);--so:0;opacity:calc(var(--so)*var(--fa,1));transition:--so .12s;color:color-mix(in srgb,var(--ink) calc(100% - var(--e,0)*100%),color-mix(in srgb,var(--ink2) 72%,transparent));text-shadow:0 0 calc(var(--gl,0)*12px) color-mix(in srgb,var(--rc) 60%,transparent)}
.ix.sel .il b{--so:1;transition:--so .4s .24s}
/* a strip's name: level under its kanji, the reading face, legible (no more sideways spine) */
.sp{position:absolute;left:0;right:0;top:64px;width:max-content;max-width:calc(100% - 8px);margin:0 auto;font:600 14px/1 var(--min);letter-spacing:.01em;white-space:nowrap;pointer-events:none;
  color:var(--ink2);--so:1;opacity:calc(var(--so)*var(--fa,1));transition:--so .3s .3s,color .2s}
.ix.sel .sp{--so:0;transition:--so .12s}
.ix.hi .sp,.ix:focus-within .sp{color:var(--ink)}
/* the panel's words (row3, his words: "the button goes too down in wisdoms like in the scaled version"): the action first, right under
   the name, in the same spot in every place and at every width, its count beside it; then the head line (a verse where one serves, its
   ref). A long verse can no longer push the action down. Ref: Apple TV+ show page (title, then Play + its facts, the synopsis under). */
.pv{position:absolute;left:30px;top:84px;width:var(--pw);display:flex;flex-direction:column;align-items:flex-start;--so:0;opacity:calc(var(--so)*var(--fa,1));transform:translateY(8px);visibility:hidden;
  transition:--so .15s,transform .2s,visibility 0s .15s}
.ix.sel .pv{--so:1;transform:none;visibility:visible;transition:--so .4s .2s,transform .48s .18s var(--ez),visibility 0s;z-index:2} /* done by 0.66s: within the row's own ease */
.hl{font:500 18.5px/1.45 var(--min);color:var(--ink);margin:18px 0 0;text-wrap:balance}
.pv .r{margin-top:7px;font-size:10px;color:color-mix(in srgb,var(--rc) 70%,var(--ink2))}
.ac{display:flex;align-items:center;gap:16px} /* the action, its count beside it */
/* 数 the count (row3, his words: "the like 35 marked lines ... surely can be done better but the scaling is odd too"): one or two short
   facts in the reading face, stacked, the number lit in the place's colour (Kinfolk's "1 / 10" between its two actions: the count is
   quiet type, not a label). Same size at every width. */
.ct{display:flex;flex-direction:column;gap:3px;font:500 13.5px/1.25 var(--min);color:var(--ink2);white-space:nowrap}
.ct b{font-weight:700;color:color-mix(in srgb,var(--rc) 82%,var(--ink))}
/* the action: a name tape in the place's colour, stitched, saying what it does; the whole panel does the same (hover the panel = it lifts) */
.op,.emaki .op,.nx u{position:relative;background:var(--rc);color:#1c1613;border-radius:3px;
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.2),0 8px 22px -12px var(--rc);transition:transform .25s var(--ez),box-shadow .25s,filter .2s}
.op::before,.nx u::before{content:"";position:absolute;inset:4px;border:1px dashed rgba(28,22,19,.4);border-radius:2px;pointer-events:none}
.op{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:0 17px 1px 20px;pointer-events:auto;white-space:nowrap}
.op b{font:700 15.5px/1 var(--min);letter-spacing:.01em}
.op u{text-decoration:none;font:15px/1 var(--px);transition:transform .25s var(--ez)}
.op:hover,.ix.sel.hi .op{transform:translateY(-2px);filter:brightness(1.07);box-shadow:inset 0 -2px 0 rgba(0,0,0,.2),0 14px 28px -12px var(--rc)}
.op:hover u,.ix.sel.hi .op u{transform:translateY(3px)}
.op:active,.ix.sel .hit:active~.cl .op{transform:translateY(1px) scale(.98);filter:brightness(.94);box-shadow:inset 0 2px 0 rgba(0,0,0,.18)}
.op:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.r{display:block}
.now .ix,.now .ix *,.now .ix::before,.now .ix::after,.now .cl::after{transition:none!important}
body.formed .idx .il,body.formed .idx .sp{visibility:hidden} /* landed: the bar's own links carry on */
body.land:not(.formed) main{z-index:auto}
body.land .view.home.on{animation-fill-mode:backwards} /* a held fade would make the scroll its own layer, under the bar */
/* narrower desktops: the strips and the panel's words tighten; the drawing sits under the words' edge, feathered */
@media (max-width:1100px){.idx{--sl:68px;--pw:300px;--ww:42px}.sp{font-size:11.5px}.hl{font-size:17.5px}.ix.sel .th{-webkit-mask:linear-gradient(90deg,transparent 18%,#000 58%);mask:linear-gradient(90deg,transparent 18%,#000 58%)}}
/* narrower: the panel's words sit on undyed reserve, feathered into the drawing (as in the stage), never on its lines (row3) */
@media (max-width:1100px){.pv{width:auto;max-width:var(--pw)}.pv::before{content:"";position:absolute;inset:-6px -10px -8px -12px;z-index:-1;background:var(--cloth);box-shadow:0 0 18px 14px var(--cloth);border-radius:8px}}
@media (max-width:940px){.idx{--sl:64px;--pw:280px;--ww:38px}.sp{font-size:11px}.hl{font-size:16.5px}.ac{gap:12px}.op{gap:9px;padding:0 13px 1px 15px}.op b{font-size:14.5px}.ct{font-size:13px}.ix.sel .th{left:calc(100% - var(--dw) + 40px);-webkit-mask:linear-gradient(90deg,transparent 18%,#000 58%);mask:linear-gradient(90deg,transparent 18%,#000 58%)}}

/* 場 the stage (row1): under the row, the chosen place's own content, dyed in its colour, stitched down both edges (lit in its colour:
   you are here), read straight down. At its end, NEXT: the next place in the plain order. inner.js. */
.stg{display:block;padding:38px clamp(28px,4.4vw,68px) 34px;--thread:color-mix(in srgb,var(--pc,#f4c552) 70%,transparent);
  background-image:repeating-linear-gradient(90deg,rgba(239,227,207,.42) 0 2px,transparent 2px 6px);background-size:calc(100% - 32px) 1px;background-position:16px 0;background-repeat:no-repeat}
.stg::before,.stg::after{filter:drop-shadow(0 0 3px var(--pc,#f4c552));transition:filter .6s}
.pdy{position:absolute;inset:1px 0 0;pointer-events:none;
  background-image:linear-gradient(90deg,var(--cloth) 380px,transparent 620px),var(--pdye,none);background-size:auto,48px 36px;image-rendering:pixelated}
.stg>*:not(.pdy){position:relative}
.stg .hd{display:none}
.pgs>.view.place{display:none;max-width:none;margin:0;padding:0;animation:none}
.pgs>.view.place.cur{display:block}
.pgs .rsv{position:relative;background:var(--cloth);box-shadow:0 0 22px 12px var(--cloth);padding:18px 0 10px}
.stg .sh{display:flex;align-items:flex-start;gap:16px;margin:0 0 6px;max-width:760px;position:relative;background:var(--cloth);box-shadow:0 0 22px 12px var(--cloth)}
.stg .sh h2{font:600 clamp(23px,2.1vw,29px)/1.22 var(--min);margin:0 0 6px;text-wrap:balance;
  background:linear-gradient(90deg,var(--ink) 55%,color-mix(in srgb,var(--ac) 70%,var(--ink)));-webkit-background-clip:text;background-clip:text;color:transparent}
.stg .sh p{font:15px/1.55 var(--min);color:var(--dim);margin:0}
.stg .sh .k{font:9.5px var(--px);letter-spacing:.2em;color:var(--ac);margin-bottom:6px}
.stg .sh .legend{margin-top:10px}
.emaki{overflow-anchor:none} /* the stage changing height must not drag the view along with it */

/* 足 the foot (foot1, his words: "the bottom part is a little too space wasting / massive / non intuitive designed ... the next button isnt
   really like clear ... its placement ... might clash with the back to top thing. we should consider these together"): ONE compact foot
   closes the current place, sitting right on the bottom roller. RIGHT, the widest and the obvious thing to do: the NEXT card, dyed in the
   next place's colour. LEFT: a quiet link to the previous place. CENTRE: the seal with the two koi circling it, the glory line signed
   under it like a 落款; the seal is the way back to the start. The last place's card loops to the start. inner.js fills nx + fp.
   Rollback: ../retired/*-pre-foot1.* */
.sfoot{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1.5fr);grid-template-areas:"fp fs nx";align-items:center;gap:28px;padding:36px clamp(28px,4.4vw,68px) 40px}
.nx{grid-area:nx}.fs{grid-area:fs}.fp{grid-area:fp;justify-self:start}
.fp a{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 6px;color:var(--ink2);transition:color .2s}
.fp i{font:800 22px/1 var(--min);font-style:normal;color:color-mix(in srgb,var(--rc) 80%,var(--dim))}
.fp b{font:500 15px/1 var(--min);white-space:nowrap}.fp u{text-decoration:none;font-family:var(--px);font-size:12px;transition:transform .2s}
.fp a:hover{color:var(--ink)}.fp a:hover u{transform:translateX(-4px)}
.fp a:focus-visible,.fs:focus-visible,.nx a:focus-visible{outline:1px dashed var(--ac);outline-offset:3px}
.fs{justify-self:center;display:flex;flex-direction:column;align-items:center;gap:0;padding:0 8px;background:none;border:0;color:inherit;cursor:pointer;font:inherit}
.fs .ko{display:flex;flex-direction:column;align-items:center;gap:4px}
.fs canvas.koi{display:block;image-rendering:pixelated;opacity:.85;transition:opacity .3s;filter:drop-shadow(0 0 5px color-mix(in srgb,var(--ac) 45%,transparent))}
.fs #seal-c{display:block;line-height:0;transition:filter .3s}
#seal-c .hkm .f0{animation:none!important;opacity:1}
.fs:hover #seal-c{filter:drop-shadow(0 0 8px color-mix(in srgb,var(--ac) 70%,transparent))}.fs:hover canvas.koi{opacity:1}
.dg{display:flex;flex-direction:column;align-items:center;gap:6px;margin:12px 0 0;max-width:250px;text-align:center}
.dg q{font:400 13px/1.5 var(--min);font-style:italic;color:var(--ink2);quotes:'“' '”'}
.dg small{font-size:9px;color:var(--dim)}
/* NEXT: the whole card is the tap; its label, the next place's kanji, name and line, an arrow */
.nx{justify-self:stretch;display:flex;justify-content:flex-end;min-width:0}
.nx:empty{display:none}
.nx a{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"nl nl nl" "k n u" "k l u";align-items:center;gap:0 16px;width:100%;max-width:470px;min-height:86px;padding:12px 22px 12px 18px;border-radius:3px;overflow:hidden;
  background:linear-gradient(90deg,color-mix(in srgb,var(--rc) 20%,var(--cloth)),color-mix(in srgb,var(--rc) 7%,var(--cloth)));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 45%,transparent),0 0 22px -6px color-mix(in srgb,var(--rc) 50%,transparent);transition:box-shadow .3s,background-color .3s,transform .3s var(--ez)}
.nx .nl{grid-area:nl;font-size:9px;letter-spacing:.24em;color:color-mix(in srgb,var(--rc) 70%,var(--dim));margin-bottom:4px}
.nx i{grid-area:k;font:800 38px/1 var(--min);font-style:normal;color:var(--rc);text-shadow:0 0 16px color-mix(in srgb,var(--rc) 55%,transparent)}
.nx b{grid-area:n;font:600 20px/1.2 var(--min);color:var(--ink)}
.nx em{grid-area:l;font:400 13.5px/1.4 var(--min);font-style:normal;color:var(--ink2);margin-top:3px}
/* its arrow is the row's action tape, small (row2: one family: the same colour, stitch, lift and press) */
.nx u{grid-area:u;display:grid;place-items:center;width:46px;height:46px;text-decoration:none;font:18px/1 var(--px)}
.nx a:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--rc),0 0 30px -2px color-mix(in srgb,var(--rc) 65%,transparent)}.nx a:hover u{transform:translateX(4px);filter:brightness(1.07)}
.nx a:active{transform:translateY(1px) scale(.99)}.nx a:active u{transform:none;filter:brightness(.94);box-shadow:inset 0 2px 0 rgba(0,0,0,.18)}
.nx a.lp:hover u{transform:translateY(-3px)}

/* 折 the cloth folds back at both ends (M's corner flaps): the head of the scroll at the top, its foot at the bottom */
.slip{background-image:linear-gradient(135deg,var(--rev) 22px,rgba(239,227,207,.55) 22px 23px,transparent 23px),linear-gradient(225deg,var(--rev) 22px,rgba(239,227,207,.55) 22px 23px,transparent 23px),linear-gradient(#231c17,#1e1814)}
.sfoot{background-image:repeating-linear-gradient(90deg,rgba(239,227,207,.42) 0 2px,transparent 2px 6px),linear-gradient(45deg,var(--rev) 22px,rgba(239,227,207,.55) 22px 23px,transparent 23px),linear-gradient(315deg,var(--rev) 22px,rgba(239,227,207,.55) 22px 23px,transparent 23px),linear-gradient(#1e1814,#231c17);
  background-size:calc(100% - 32px) 1px,auto,auto,auto;background-position:16px 0,0 0,0 0,0 0;background-repeat:no-repeat}

/* phone: the same hanging scroll, narrower: the drawing above the words, everything a size down */
@media (max-width:759px){
  .emaki{padding:14px 14px calc(18px + env(safe-area-inset-bottom))}
  .rod{height:14px;margin:0 -2px}.strip>.rod:last-child{height:14px}
  .rod::before,.rod::after{top:2px;bottom:2px;width:14px}.rod::before{left:-9px}.rod::after{right:-9px}
  .slip::before,.stg::before,.sfoot::before{left:6px}.slip::after,.stg::after,.sfoot::after{right:6px}
  /* the slip on a phone: the same centred axis as narrower desktops (row3), a size down */
  .slip{gap:0 16px;padding:22px 20px 20px;
    background-image:linear-gradient(135deg,var(--rev) 17px,rgba(239,227,207,.55) 17px 18px,transparent 18px),linear-gradient(225deg,var(--rev) 17px,rgba(239,227,207,.55) 17px 18px,transparent 18px),linear-gradient(#231c17,#1e1814)}
  .ro{margin-bottom:12px}.dx{font-size:16px;line-height:1.45;max-width:330px}.mean{font-size:12.5px;flex-direction:column;align-items:center;gap:0}.vr{font-size:9px}
  .ttl{gap:4px}
  .slip .daisen{font-size:34px;padding:6px 2px 0}
  .crx{width:13px;margin:10px 0 4px}.crx i{left:6px}
  .emw::before{width:260px;height:220px;margin:-110px 0 0 -130px}
  .emk{width:64px;height:64px}
  /* the row: six cells in one line, kanji over its short name (the bar, large); the chosen one lit, its light sliding across. Its
     panel heads the stage below (drawing, kanji + name, head line) */
  .idx{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));height:auto;padding:4px 8px}
  .idx>.ix:first-child{grid-column:1}
  .ix{min-height:68px;display:flex;align-items:center;justify-content:center}
  .ix::before,.ix.sel::before,.ix.hi::before{inset:6px 2px;--so:0;background:color-mix(in srgb,var(--rc) 16%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 45%,transparent);transform:scaleX(.6);transition:--so .35s var(--ez),transform .45s var(--ez)}
  .ix.sel::before{--so:.8;transform:none}
  .cl,.sp{display:none}
  .il,.ix.sel .il{position:static;flex-direction:column;align-items:center;gap:6px}
  .il i,.ix.sel .il i{font-size:23px}
  .il b,.ix.sel .il b{--so:1;transition:none;font:10px/1 var(--px);letter-spacing:.06em;text-transform:uppercase;color:color-mix(in srgb,var(--ink2) calc(100% - var(--e,0)*100%),transparent)}
  .ix.sel .il b{color:var(--ink)}
  .stg{padding:22px 16px 24px}
  .pdy{background-image:linear-gradient(0deg,var(--cloth) 60%,transparent 85%),var(--pdye,none);background-size:auto,32px 24px}
  .stg .hd{display:block;position:relative;margin-bottom:8px}
  .hd .th{position:relative;left:auto;top:auto;margin:0 auto;opacity:.9;width:max-content}
  .hx{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:10px;margin-top:12px;padding:10px 0 6px;background:var(--cloth);box-shadow:0 0 16px 10px var(--cloth)} /* the words on undyed reserve, like the page under it (row2) */
  .hx i{font:800 32px/1 var(--min);font-style:normal;color:var(--rc);text-shadow:0 0 18px color-mix(in srgb,var(--rc) 55%,transparent);grid-row:1/3}
  .hx>b{font:600 23px/1.1 var(--min)}
  .hx .ct{flex-direction:row;flex-wrap:wrap;gap:0;margin-top:6px;font-size:13.5px}.hx .ct span+span::before{content:"·";margin:0 7px;color:var(--dim)}
  .hx .hl{grid-column:1/-1;font-size:17px;margin-top:10px}
  .hx .r{grid-column:1/-1;margin-top:4px;font-size:9px;color:color-mix(in srgb,var(--rc) 70%,var(--dim))}
  .stg .sh{gap:12px;box-shadow:0 0 14px 8px var(--cloth)}.stg .sh h2{font-size:23px}.stg .sh p{font-size:14.5px}
  .pgs .rsv{box-shadow:0 0 14px 8px var(--cloth);padding:12px 0 6px}
  .sfoot{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:"nx nx nx" "fp fs .";gap:18px 8px;padding:24px 16px calc(14px + env(safe-area-inset-bottom));
    background-image:repeating-linear-gradient(90deg,rgba(239,227,207,.42) 0 2px,transparent 2px 6px),linear-gradient(45deg,var(--rev) 17px,rgba(239,227,207,.55) 17px 18px,transparent 18px),linear-gradient(315deg,var(--rev) 17px,rgba(239,227,207,.55) 17px 18px,transparent 18px),linear-gradient(#1e1814,#231c17);
    background-size:calc(100% - 28px) 1px,auto,auto,auto;background-position:14px 0,0 0,0 0,0 0;background-repeat:no-repeat}
  .nx a{max-width:none;min-height:72px}
  .dg{max-width:180px}.dg q{font-size:12px}
  .fp a{flex-wrap:wrap;gap:0 8px;padding:0;align-content:center}.fp b{flex-basis:100%;font-size:13px;margin-top:3px}.fs{padding:0}
}
@media (prefers-reduced-motion:reduce){
  .emw::before,.crx::before,.dt{animation:none}.nx a,.nx u,.fp u,.op,.op u{transition:none}
}

/* 帯 the bar = the row, small (bar1, his words 11-19: "the top bar should be styled kind of lowkey exactly like the row in the full size
   just like in the mini size up there. but with like the scaling shifting and like styles and shit just proper for like what itll be up
   there"): the same six cells as the row, kanji over its name in the row's own faces (Mincho on desktop, the phone row's pixel caps on a
   phone), each in its colour, laid as one centred group of equal cells; the chosen one sits on the row's lit tile (its colour's edge,
   a breath of its dye, a soft glow), the rest bare ink until hovered. Same at every desktop width: names never drop. The tile fills in
   with the bar's glass while the row flies up (--f), so the landing hands over to the same picture. Overrides inner.css's bar by id
   (inner.css loads after this file). Refs: Airbnb (the category row condenses into the header: the chosen category keeps its own mark),
   Apple HIG tab bar (glyph over a small label; the selected tab in a soft lit capsule), Material 3 navigation bar (only the active
   indicator carries the colour; it grows out from the centre). Rollback: ../retired/emaki-pre-bar1.css + emaki-pre-bar1.js */
#go{justify-content:center;gap:2px;position:absolute;left:0;right:0;top:0;bottom:0;margin:0 auto;width:max-content;pointer-events:none}
#go a{pointer-events:auto;flex-direction:column;justify-content:center;gap:5px;width:76px;min-width:0;height:var(--tbh);padding:1px 0 0;border-radius:0;background:none;
  color:color-mix(in srgb,var(--ink2) 86%,var(--dim));font:600 11.5px/1 var(--min);letter-spacing:.01em}
#go a i{font:800 18px/1 var(--min);font-style:normal;opacity:.82}
#go a span{display:block}
#go a::before{content:"";position:absolute;inset:4px 3px;border-radius:3px;z-index:-1;pointer-events:none;opacity:0;transform:scaleX(.6);
  background:linear-gradient(180deg,color-mix(in srgb,var(--rc) 13%,transparent),color-mix(in srgb,var(--rc) 4%,transparent)),var(--dye,none) 0 0/32px 24px;image-rendering:pixelated;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 46%,transparent),0 0 16px -7px var(--rc);transition:opacity .35s var(--ez,ease),transform .45s cubic-bezier(.22,.8,.24,1)}
#go a.cur::after{content:none}
#go a:hover{background:none;color:var(--ink)}
#go a:hover::before{opacity:.3;transform:none}
#go a.cur{color:var(--ink)}
#go a.cur::before{opacity:1;transform:none}
#go a.cur i{opacity:1;text-shadow:0 0 10px color-mix(in srgb,var(--rc) 65%,transparent)}
#go a:focus-visible{outline:1px dashed var(--rc);outline-offset:-5px}
/* the landing: the bar's own kanji and names stay hidden (their twins are flying in), but the chosen tile fills in with the glass */
body.land:not(.formed) #go a{visibility:visible}
body.land:not(.formed) #go a>*{visibility:hidden}
body.land:not(.formed) #go a.cur::before{opacity:var(--f,1)}
@media (prefers-reduced-motion:no-preference){body.land.formed .emw{visibility:hidden}} /* landed: the bar's own seal carries on (the flown one used to slide away over it) */
/* phone: the phone row's cells (kanji over its name in pixel caps), the same lit tile */
@media (max-width:759px){
  #go{position:static;flex:1;width:auto;margin:0;justify-content:flex-end;gap:3px}
  #go a{width:47px;height:48px;gap:5px;padding:0;font:9px/1 var(--px);letter-spacing:.06em;text-transform:uppercase}
  #go a i{font-size:16px}
  #go a::before{inset:2px 1px}
}
@media (max-width:370px){#go{gap:1px}#go a{width:45px}}
@media (prefers-reduced-motion:reduce){#go a::before{transition:none}}

/* 弧 four1 (his words 11-19: "make it super clear cuz "The word, Wisdoms, Gift, Letter" vague"): four places along ONE arc. Wherever a
   place shows (row strip, panel, phone row, phone head, bar, NEXT, previous) its step on the arc sits over its one plain name as a small
   pixel-caps eyebrow in its colour: GIVEN · GROWN · YOURS · GIVEN ON. The slip says the arc in one plain sentence, its four phrases lit in
   the four colours, right above the row. Refs: BibleProject's Genesis poster (each part labelled by its place in the one story), Linear
   Method (a small caps eyebrow over the plain name), The Way of Code (one plain line under the title saying whose it is).
   Rollback: ../retired/emaki-pre-four.css */
.dxj{font:600 14px/1.5 var(--min);letter-spacing:.06em;color:color-mix(in srgb,var(--ink2) 60%,var(--dim));margin:6px 0 0}
.arc{font:500 15.5px/1.55 var(--min);color:var(--ink2);margin:14px 0 0;padding-top:12px;max-width:430px;text-wrap:pretty;position:relative}
.arc::before{content:"";position:absolute;top:0;left:0;width:44px;height:1px;background:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ac) 70%,transparent) 0 2px,transparent 2px 5px)}
.arc b{font-weight:700;color:color-mix(in srgb,var(--k) 78%,var(--ink));white-space:nowrap}
@media (max-width:999px){
  .slip{grid-template-areas:". ro ro ." ". emw ttl ." "mean mean mean mean" "dx dx dx dx" "dxj dxj dxj dxj" "vr vr vr vr" "arc arc arc arc"}
  .dxj{grid-area:dxj;text-align:center}
  .arc{grid-area:arc;text-align:center;max-width:560px;margin-top:14px}
  .arc::before{left:50%;margin-left:-22px}
}
/* the row: four cells; a strip = eyebrow, kanji, its name (two lines), then the window on its spot in the toile */
.idx{--sl:92px;--wt:116px}
.ey{position:absolute;left:0;right:0;top:17px;z-index:31;display:block;text-align:center;font:9px/1 var(--px);letter-spacing:.16em;white-space:nowrap;pointer-events:none;
  color:color-mix(in srgb,var(--rc) 85%,var(--ink));opacity:var(--fa,1);transition:left .64s var(--ez),top .64s var(--ez)}
.ix.sel .ey{left:30px;right:auto;top:22px;font-size:10px}
.il{top:33px}
.ix.sel .il{top:38px}
.sp{top:72px;width:calc(100% - 14px);max-width:none;white-space:normal;text-align:center;line-height:1.18;text-wrap:balance}
.pv{top:96px}
body.formed .idx .ey{visibility:hidden}
@media (max-width:1100px){.idx{--sl:84px}}
@media (max-width:940px){.idx{--sl:78px}.sp{font-size:11.5px}.ey{font-size:8.5px;letter-spacing:.1em}}
/* the bar: the same three things, small (eyebrow over kanji over name) */
#go a{width:118px;gap:3px;padding-top:0}
#go a em{display:block;font:8px/1 var(--px);font-style:normal;letter-spacing:.16em;color:color-mix(in srgb,var(--rc) 80%,var(--ink));opacity:.9}
#go a i{font-size:16px}
#go a.cur em{opacity:1}
body.land:not(.formed) #go a>em{visibility:visible;opacity:calc(var(--f,1)*var(--f,1))}
@media (min-width:760px){body.land:not(.formed) #go a:not(.cur)>span{visibility:visible;opacity:calc(var(--f,1)*var(--f,1))}}
@media (max-width:900px){#go a{width:108px}}
/* NEXT and previous carry the step too */
.nx .nl em{font-style:normal;color:color-mix(in srgb,var(--rc) 90%,var(--ink))}
.fp a>span{display:flex;flex-direction:column;gap:4px}
.fp em{font:8.5px/1 var(--px);font-style:normal;letter-spacing:.16em;color:color-mix(in srgb,var(--rc) 75%,var(--dim))}
.hx em{display:none}
@media (max-width:759px){
  .idx{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ix{min-height:78px}
  .ey,.ix.sel .ey{position:static;display:block;margin-bottom:5px;font-size:8px;letter-spacing:.12em}
  .ix{flex-direction:column}
  .il b,.ix.sel .il b{font-size:9.5px;letter-spacing:.04em;white-space:nowrap}
  .il i,.ix.sel .il i{font-size:21px}
  .hx{grid-template-columns:auto 1fr}
  .hx i{grid-row:1/4}
  .hx em{display:block;grid-column:2;font:9px/1 var(--px);font-style:normal;letter-spacing:.16em;color:color-mix(in srgb,var(--rc) 85%,var(--ink));margin-bottom:4px}
  .fp em{display:none}
  .arc{font-size:14.5px;max-width:330px;margin-top:12px;padding-top:10px}
  /* four1: a phone's first screen reaches the place's own content: the head drawing gives way (the row already carries each
     place's colour and kanji), the seal + title a size down */
  .stg .hd .th{display:none}
  .hx{margin-top:0}
  .stg{padding-top:12px}
  .emk{width:52px;height:52px}
  .slip .daisen{font-size:30px}
  .slip{padding-bottom:16px}
  .dxj{font-size:13px}
  #go{gap:2px}
  #go a{flex:1 1 0;width:auto;min-width:0;max-width:86px;gap:3px;font-size:8.5px;letter-spacing:.02em}
  #go a em{font-size:7.5px;letter-spacing:.1em}
  #go a i{font-size:15px}
  #go a span{white-space:nowrap}
}
