/* Noroshi, the scroll version. The living painting always stays underneath and the page never scrolls:
   on the right a row of wooden tablets, one per section; a click unrolls a makimono over the artwork. */

@font-face { font-family: "Shippori Mincho B1"; font-weight: 500; font-display: swap; src: url(../fonts/shippori-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Shippori Mincho B1"; font-weight: 700; font-display: swap; src: url(../fonts/shippori-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Shippori Mincho B1"; font-weight: 800; font-display: swap; src: url(../fonts/shippori-latin-800.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Shippori Mincho B1"; font-weight: 500; font-display: block; src: url(../fonts/shippori-extra-500.woff2) format("woff2"); unicode-range: U+5730, U+5834, U+65AC, U+6708, U+706B, U+70FD, U+7159, U+72FC, U+76F8, U+7A2E, U+7D99, U+91D1, U+9762, U+982C; }
@font-face { font-family: "Shippori Mincho B1"; font-weight: 700; font-display: block; src: url(../fonts/shippori-extra-700.woff2) format("woff2"); unicode-range: U+5730, U+5834, U+65AC, U+6708, U+706B, U+70FD, U+7159, U+72FC, U+76F8, U+7A2E, U+7D99, U+91D1, U+9762, U+982C; }
@font-face { font-family: "Shippori Mincho B1"; font-weight: 800; font-display: block; src: url(../fonts/shippori-extra-800.woff2) format("woff2"); unicode-range: U+5730, U+5834, U+65AC, U+6708, U+706B, U+70FD, U+7159, U+72FC, U+76F8, U+7A2E, U+7D99, U+91D1, U+9762, U+982C; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 400; font-display: swap; src: url(../fonts/zenkaku-latin-400.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 500; font-display: swap; src: url(../fonts/zenkaku-latin-500.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-display: swap; src: url(../fonts/zenkaku-latin-700.woff2) format("woff2"); }

:root {
  --ink: #120f0d;
  --ink-2: #1a1613;
  --bone: #ede6da;
  --bone-dim: rgba(237, 230, 218, .84);
  --cinder: #a99d90;
  --gold: #d2aa5c;
  --gold-hi: #f1d590;
  --shu: #b3301f;
  --line: rgba(237, 230, 218, .14);
  /* the scroll's paper */
  --paper: #e7dbc2;
  --paper-2: #d9cba9;
  --sumi: #1c1612;
  --sumi-dim: #4d4238;
  --sumi-line: rgba(28, 22, 18, .16);
  --gold-on: #7a5a1c;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;
  --bar: 76px;
  --pad: clamp(22px, 5vw, 84px);
  --fuda: 92px;             /* room for the row of tablets */
    --ease: cubic-bezier(.16, .84, .24, 1);
  --unroll: cubic-bezier(.3, .75, .25, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow: hidden; background: var(--ink); color: var(--bone); font: 500 19px/1.72 var(--serif); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(210, 170, 92, .38); color: #fff; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- fixed layers ---------- */
.stage { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; background: var(--ink); }
#gl { display: block; width: 100%; height: 100%; touch-action: none; }
.wipe { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; display: block; }
.wipe.fade { opacity: 0; transition: opacity .7s ease; }
.scrim { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.s-left { background: linear-gradient(90deg, rgba(13, 10, 8, .88) 0%, rgba(13, 10, 8, .6) 28%, rgba(13, 10, 8, .14) 50%, rgba(13, 10, 8, 0) 62%); }
.s-bottom { background: linear-gradient(0deg, rgba(13, 10, 8, .9) 0%, rgba(13, 10, 8, .5) 24%, rgba(13, 10, 8, 0) 52%); }
body:not(.open) .s-left { opacity: 1; }
body:not(.open) .s-bottom { opacity: .6; }
.grain { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .42; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .48 0 0 0 0 .45 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.nogl { position: fixed; left: var(--pad); bottom: 24px; z-index: 6; margin: 0; max-width: 30em; font: 400 14px/1.5 var(--sans); color: var(--cinder); }
.nogl[hidden] { display: none; }
.no-webgl .stage { background: var(--ink) url(../img/og.jpg) center / cover no-repeat; }
main { position: relative; z-index: 5; height: 100%; }

/* ---------- opening: the two kanji are brushed in, then the smoke opens on the warrior ---------- */
.loader { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: var(--ink); animation: ld-safety .8s ease 9s forwards; }
.loading .loader { display: grid; }
.lifting .loader { background: transparent; }
.ld-k { height: min(58vh, 540px); width: auto; overflow: visible; transition: opacity 1.1s ease, transform 1.6s var(--ease), filter 1.3s ease; }
.ld-k path { fill: rgba(237, 230, 218, 0); stroke: var(--gold); stroke-width: 4.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ld-draw 1.15s cubic-bezier(.6, .04, .3, 1) forwards, ld-fill .9s ease 2.25s forwards; }
.lifting .ld-k { opacity: 0; transform: scale(1.12); filter: blur(14px); }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-fill { to { fill: rgba(237, 230, 218, .94); stroke: rgba(210, 170, 92, .25); } }
@keyframes ld-safety { to { opacity: 0; visibility: hidden; } }
.ld-k path:nth-child(2) { animation-delay: .09s, 2.25s; } .ld-k path:nth-child(3) { animation-delay: .18s, 2.25s; }
.ld-k path:nth-child(4) { animation-delay: .27s, 2.25s; } .ld-k path:nth-child(5) { animation-delay: .36s, 2.25s; }
.ld-k path:nth-child(6) { animation-delay: .45s, 2.25s; } .ld-k path:nth-child(7) { animation-delay: .56s, 2.25s; }
.ld-k path:nth-child(8) { animation-delay: .65s, 2.25s; } .ld-k path:nth-child(9) { animation-delay: .74s, 2.25s; }
.ld-k path:nth-child(10) { animation-delay: .83s, 2.25s; } .ld-k path:nth-child(11) { animation-delay: .92s, 2.25s; }
.ld-k path:nth-child(12) { animation-delay: 1.01s, 2.25s; } .ld-k path:nth-child(13) { animation-delay: 1.1s, 2.25s; }

/* ---------- bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--bar); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); transition: opacity .8s ease, transform .8s var(--ease); }
.bar::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; background: linear-gradient(rgba(13, 10, 8, .6), rgba(13, 10, 8, 0)); pointer-events: none; }
.loading .bar { opacity: 0; transform: translateY(-10px); }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--bone); }
.brand-k { font: 800 24px/1 var(--serif); letter-spacing: .04em; }
.brand-l { font: 700 18px/1 var(--serif); letter-spacing: .01em; }
.sound { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -11px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--cinder); transition: color .3s; }
.sound:hover, .sound[aria-pressed="true"] { color: var(--bone); }
.snd-i { width: 24px; height: 24px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.snd-body { fill: currentColor; stroke-width: 1; }
.snd-w1, .snd-w2, .snd-x { transition: opacity .35s ease; }
.snd-w1, .snd-w2 { opacity: 0; }
.sound[aria-pressed="true"] .snd-w1 { opacity: 1; }
.sound[aria-pressed="true"] .snd-w2 { opacity: 1; animation: snd 1.7s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .snd-x { opacity: 0; }
@keyframes snd { from { opacity: .3; } to { opacity: 1; } }

/* ---------- kinetic type ---------- */
.kin .w { display: inline-block; white-space: nowrap; }
.kin .l { display: inline-block; opacity: 0; transform: translate3d(0, .5em, 0) rotate(5deg); filter: blur(10px); transition: opacity .7s ease, transform 1.15s var(--ease), filter .9s ease; transition-delay: var(--d, 0ms); }
.on .kin .l { opacity: 1; transform: none; filter: blur(0); }
.rv { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(5px); transition: opacity .9s ease, transform 1.1s var(--ease), filter .9s ease; transition-delay: var(--r, 0ms); }
.on .rv { opacity: 1; transform: none; filter: blur(0); }
.hero:not(.on) .kin .l, .hero:not(.on) .rv, .page:not(.on) .rv { transition-delay: 0ms; transition-duration: .4s; }

/* ---------- the opening text, bottom left ---------- */
.hero { position: fixed; left: 0; right: var(--fuda); bottom: 0; z-index: 6; padding: 0 var(--pad) 7vh; pointer-events: none; transition: opacity .6s ease, transform .9s var(--ease); }
.hero-in { max-width: 36rem; }
.hero-in > *, .hero-in a { pointer-events: auto; }
.hero-h { font: 800 clamp(84px, 11.5vw, 200px)/.9 var(--serif); letter-spacing: -.04em; margin: 0 0 0 -.05em; text-shadow: 0 10px 60px rgba(10, 8, 6, .55); }
.hero-h .l { transition-duration: 1s, 1.6s, 1.2s; }
.hero-sub { font: 500 clamp(19px, 1.5vw, 23px)/1.5 var(--serif); max-width: 23em; margin: 30px 0 0; color: var(--bone-dim); text-shadow: 0 1px 18px rgba(10, 8, 6, .6); }
.hero-cta { margin: 22px 0 0; font: 500 15.5px/1.4 var(--sans); }
.hero-cta a { color: var(--gold-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; text-shadow: 0 1px 18px rgba(10, 8, 6, .7); }
.hero-cta a:hover { color: var(--bone); }
.readout { margin-top: 34px; }
.ro-a { display: flex; align-items: baseline; gap: 14px; margin: 0 0 6px; font: 700 28px/1 var(--serif); font-variant-numeric: tabular-nums; }
.ro-k { font: 500 14px/1 var(--sans); color: var(--cinder); }
.ro-c.up { color: #eabb6c; } .ro-c.down { color: #e8907b; }
.ro-b { margin: 0; font: 400 14px/1.6 var(--sans); color: var(--cinder); max-width: 26rem; }
.ro-b b { color: var(--bone); font-weight: 500; }
.foot-links { display: flex; flex-wrap: wrap; gap: 26px; margin: 28px 0 0; font: 500 14px/1 var(--sans); color: var(--cinder); }
.foot-links a { text-decoration: underline; text-decoration-color: rgba(210, 170, 92, .6); text-underline-offset: 7px; transition: color .3s; }
.foot-links a:hover { color: var(--gold-hi); }
.open .hero { opacity: 0; transform: translate3d(-24px, 0, 0); pointer-events: none !important; }
.open .hero * { pointer-events: none !important; }

/* ---------- the tablets (kifuda): wooden blocks with real thickness ----------
   Each tablet is a true block: face, back, two sides, top and bottom. The vanishing point is the centre of the screen,
   so the side facing the centre shows, and just a little of the top or the bottom. */
.fuda { --th: clamp(66px, 9vh, 84px); --tg: clamp(8px, 1.3vh, 14px);
  position: fixed; right: 0; top: 50%; z-index: 30; display: flex; flex-direction: column; gap: var(--tg); padding: 0 20px; transform: translateY(-50%); transition: opacity .8s ease .3s, transform .8s var(--ease); }
.loading .fuda { opacity: 0; transform: translate(14px, -50%); }
.tab { --d: 15px; position: relative; display: grid; place-items: center; width: 52px; height: var(--th); padding: 0; border: 0; background: none; cursor: pointer; color: var(--bone-dim); transition: transform .5s var(--ease), color .4s; }
.tab:nth-child(1) { --i: 0; } .tab:nth-child(2) { --i: 1; } .tab:nth-child(3) { --i: 2; } .tab:nth-child(4) { --i: 3; } .tab:nth-child(5) { --i: 4; } .tab:nth-child(6) { --i: 5; }
/* the block: the perspective is centred in the middle of the screen */
.blk { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; transform: perspective(1100px);
  transform-origin: calc(72px - 50vw) calc((3 - var(--i)) * var(--th) + (2.5 - var(--i)) * var(--tg)); }
.blk i { position: absolute; display: block; }
/* the face: dark wood with its grain */
.fc { inset: 0; border: 1px solid rgba(241, 213, 144, .18); border-radius: 1.5px;
  background: repeating-linear-gradient(178deg, rgba(255, 220, 160, .045) 0 2px, rgba(0, 0, 0, 0) 2px 7px), linear-gradient(180deg, #3a2b20, #2a1e16 40%, #231911 100%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, .1); transition: border-color .4s, box-shadow .4s; }
/* the back: casts the shadow on the painting */
.bk { inset: 0; transform: translateZ(calc(var(--d) * -1)); background: #0b0705; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .95); }
/* the sides, top and bottom: the thickness, lit from the top left.
   Every face points outwards and isn't drawn from behind, so a hidden face can never end up in front. */
.sd { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sd.l, .sd.r { top: 0; width: var(--d); height: 100%; }
.sd.l { left: calc(var(--d) * -1); transform-origin: 100% 50%; transform: rotateY(-90deg);
  background: repeating-linear-gradient(90deg, rgba(255, 222, 170, .06) 0 1px, rgba(0, 0, 0, 0) 1px 4px), linear-gradient(90deg, #2c1f16, #3a2a1e 30%, #574032); }
.sd.r { left: 100%; transform-origin: 0 50%; transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, rgba(255, 222, 170, .04) 0 1px, rgba(0, 0, 0, 0) 1px 4px), linear-gradient(90deg, #33251a, #1f160f); }
.sd.t, .sd.b { left: 0; width: 100%; height: var(--d); }
.sd.t { top: calc(var(--d) * -1); transform-origin: 50% 100%; transform: rotateX(90deg); background: linear-gradient(180deg, #4a3524, #6a4f39); }
.sd.b { top: 100%; transform-origin: 50% 0; transform: rotateX(-90deg); background: linear-gradient(180deg, #1b130d, #0f0a07); }
.tab:hover { transform: translateX(-6px) rotate(-.6deg); color: var(--bone); }
.tab:hover .fc { border-color: rgba(241, 213, 144, .4); }
.tab[aria-expanded="true"] { transform: translateX(-12px); color: var(--gold-hi); }
.tab[aria-expanded="true"] .fc { border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 230, 180, .1), 0 0 0 1px rgba(210, 170, 92, .25), 0 0 26px -4px rgba(210, 170, 92, .5); }
.tab-k { position: relative; z-index: 1; display: block; width: 30px; height: 30px; }
.tab-k.tall { height: 56px; width: 28px; }
.tab-k svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tab-k path { fill: currentColor; }
/* the label is a tag that slides out to the left of the tablet */
.tab-l { position: absolute; right: calc(100% + 14px); top: 50%; padding: 7px 12px; border: 1px solid rgba(241, 213, 144, .25); border-radius: 2px; background: rgba(15, 12, 10, .9); color: var(--bone); font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(8px, -50%); transition: opacity .3s ease, transform .5s var(--ease); }
.tab:hover .tab-l, .tab:focus-visible .tab-l, .tab[aria-expanded="true"] .tab-l { opacity: 1; transform: translate(0, -50%); }

/* ---------- the scroll: a true makimono ----------
   On the right the brocade cover with its stick (hassō): it stays still.
   On the left the paper rolled on its rod, with the knobs (jikusaki): it runs left and unrolls.
   --u goes from 0 (closed) to 1 (open): paper, shadow and roll all move from it, together. */
@property --u { syntax: "<number>"; inherits: true; initial-value: 0; }
.maki { --u: 0; --rw: 24px; --hw: 28px; --kn: 13px; --sh: 90deg;
  --run: calc((1 - var(--u)) * (100% - var(--rw) - var(--hw)));
  position: fixed; z-index: 25; right: var(--fuda); top: 50%; width: min(880px, calc(100vw - var(--fuda) - 34vw)); height: min(78vh, 780px); transform: translateY(-50%);
  visibility: hidden; opacity: 0; transition: --u 1.2s var(--unroll), opacity .35s ease, visibility 0s .35s; }
.maki.show { visibility: visible; opacity: 1; transition: --u 1.2s var(--unroll), opacity .3s ease; }
.maki.unrolled { --u: 1; }
/* the shadow on the painting follows the open paper */
.shade { position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--run) + var(--rw) / 2); z-index: 0; pointer-events: none; box-shadow: 0 36px 70px -26px rgba(0, 0, 0, .92), 0 0 0 1px rgba(0, 0, 0, .3); }
.paper { position: absolute; inset: 0; z-index: 1; color: var(--sumi); background: var(--paper); clip-path: inset(0 0 0 calc(var(--run) + var(--rw) / 2)); }
/* the paper's fibres */
.paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .54 0 0 0 0 .4 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
/* the gold rules of sutra scrolls (kaisen), doubled at top and bottom, and the slightly browned edges */
.paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(rgba(146, 108, 38, .55), rgba(146, 108, 38, .55)) 0 15px / 100% 1px no-repeat,
    linear-gradient(rgba(146, 108, 38, .3), rgba(146, 108, 38, .3)) 0 19px / 100% 1px no-repeat,
    linear-gradient(rgba(146, 108, 38, .55), rgba(146, 108, 38, .55)) 0 calc(100% - 15px) / 100% 1px no-repeat,
    linear-gradient(rgba(146, 108, 38, .3), rgba(146, 108, 38, .3)) 0 calc(100% - 19px) / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(120, 86, 40, .2), rgba(120, 86, 40, 0) 6%, rgba(120, 86, 40, 0) 94%, rgba(120, 86, 40, .2)); }
/* the cover: indigo brocade with interlaced gold circles (shippō); the stick in its outer edge */
.hyoshi { position: absolute; top: 0; bottom: 0; right: 0; width: var(--hw); z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 60%, rgba(255, 236, 200, .17) 77%, rgba(0, 0, 0, .58) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cg fill='none' stroke='%23c9a14b' stroke-opacity='.5' stroke-width='.7'%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='12' cy='0' r='6'/%3E%3Ccircle cx='0' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='6' cy='6' r='6'/%3E%3C/g%3E%3Ccircle cx='6' cy='0' r='.7' fill='%23e8c878' fill-opacity='.55'/%3E%3Ccircle cx='0' cy='6' r='.7' fill='%23e8c878' fill-opacity='.55'/%3E%3C/svg%3E") 0 0 / 12px 12px,
    #1c1a2e;
  box-shadow: -1px 0 0 #a7802f, -2px 0 0 rgba(255, 232, 180, .3), -10px 0 12px -9px rgba(40, 24, 8, .5); }
/* gold flakes on the paper beside the cover (kirihaku) */
.hyoshi::before { content: ""; position: absolute; top: 0; bottom: 0; right: calc(100% + 2px); width: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='160'%3E%3Crect x='16.5' y='88.7' width='2.0' height='1.7' fill='%23b88a38' fill-opacity='0.70' transform='rotate%2824 17.5 89.6%29'/%3E%3Crect x='19.0' y='81.0' width='1.5' height='1.8' fill='%23c9a14b' fill-opacity='0.56' transform='rotate%2818 19.8 81.9%29'/%3E%3Crect x='19.1' y='129.1' width='1.6' height='0.9' fill='%23d9b462' fill-opacity='0.74' transform='rotate%2883 20.0 129.5%29'/%3E%3Crect x='10.1' y='103.1' width='1.5' height='1.8' fill='%23c9a14b' fill-opacity='0.42' transform='rotate%2824 10.9 104.0%29'/%3E%3Crect x='4.8' y='95.3' width='1.8' height='1.3' fill='%23b88a38' fill-opacity='0.69' transform='rotate%2866 5.7 95.9%29'/%3E%3Crect x='19.2' y='46.9' width='0.6' height='0.3' fill='%23b88a38' fill-opacity='0.50' transform='rotate%2870 19.5 47.1%29'/%3E%3Crect x='-0.6' y='133.8' width='1.7' height='1.2' fill='%23c9a14b' fill-opacity='0.58' transform='rotate%283 0.2 134.4%29'/%3E%3Crect x='19.4' y='121.9' width='1.2' height='1.4' fill='%23d9b462' fill-opacity='0.42' transform='rotate%282 20.0 122.6%29'/%3E%3Crect x='6.5' y='-0.5' width='0.9' height='1.1' fill='%23d9b462' fill-opacity='0.53' transform='rotate%2850 7.0 0.1%29'/%3E%3Crect x='17.5' y='90.1' width='0.9' height='0.9' fill='%23d9b462' fill-opacity='0.43' transform='rotate%2842 17.9 90.6%29'/%3E%3Crect x='19.0' y='65.0' width='2.0' height='1.2' fill='%23b88a38' fill-opacity='0.44' transform='rotate%287 20.0 65.6%29'/%3E%3Crect x='16.5' y='77.4' width='1.6' height='1.1' fill='%23b88a38' fill-opacity='0.47' transform='rotate%2816 17.3 77.9%29'/%3E%3Crect x='17.3' y='60.6' width='1.2' height='1.5' fill='%23c9a14b' fill-opacity='0.49' transform='rotate%2875 17.9 61.4%29'/%3E%3Crect x='18.6' y='141.2' width='0.9' height='0.7' fill='%23b88a38' fill-opacity='0.62' transform='rotate%2812 19.1 141.6%29'/%3E%3Crect x='19.4' y='23.1' width='1.3' height='0.6' fill='%23b88a38' fill-opacity='0.52' transform='rotate%2837 20.0 23.4%29'/%3E%3Crect x='17.9' y='11.4' width='0.9' height='0.9' fill='%23c9a14b' fill-opacity='0.61' transform='rotate%2847 18.3 11.9%29'/%3E%3C/svg%3E") 0 0 / 20px 160px; }
/* the rolled paper: turns as it runs, and casts a shadow on the open paper */
.jiku { position: absolute; top: 0; bottom: 0; left: var(--run); width: var(--rw); z-index: 4; border-radius: 2px; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .9' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .47 0 0 0 0 .33 0 0 0 .34 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E") calc(var(--u) * -170px) 0 / 120px 300px,
    linear-gradient(var(--sh), #66583f 0%, #a19172 11%, #d4c7aa 27%, #ede3cc 40%, #f7efdc 46%, #e3d7bc 57%, #c0b190 74%, #8b7b5a 89%, #574a33 100%);
  box-shadow: 8px 0 11px -6px rgba(58, 38, 16, .5), inset 0 1px 0 rgba(255, 250, 235, .35), inset 0 -1px 0 rgba(80, 58, 28, .35); }
/* the knobs: turned black lacquer, a gold line at the tip and a gold collar where they enter the roll */
.jiku .k { position: absolute; left: 50%; width: calc(100% + 2px); height: var(--kn); transform: translateX(-50%); pointer-events: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .5), inset 0 0 0 .5px rgba(0, 0, 0, .6);
  background: radial-gradient(ellipse 30% 46% at 34% 50%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 72%), linear-gradient(var(--sh), #000 0%, #17120f 18%, #3d342d 30%, #a99d90 36%, #3d342d 42%, #120e0b 68%, #000 100%); }
/* the collar: a narrower gold ring between the roll and the head */
.jiku .k::after { content: ""; position: absolute; left: 50%; width: 70%; height: 3px; transform: translateX(-50%); background: linear-gradient(var(--sh), #3f2a08, #a77a2c 22%, #f3d68c 42%, #c49a45 62%, #4d3509 100%); box-shadow: 0 0 0 .5px rgba(40, 26, 6, .6); }
.jiku .k.t { bottom: calc(100% + 3px); border-radius: 5px 5px 2px 2px / 4px 4px 2px 2px; box-shadow: 0 2px 5px rgba(0, 0, 0, .5), inset 0 1.5px 0 #b88a38, inset 0 0 0 .5px rgba(0, 0, 0, .6); }
.jiku .k.t::after { top: 100%; }
.jiku .k.b { top: calc(100% + 3px); border-radius: 2px 2px 5px 5px / 2px 2px 4px 4px; box-shadow: 0 2px 5px rgba(0, 0, 0, .5), inset 0 -1.5px 0 #b88a38, inset 0 0 0 .5px rgba(0, 0, 0, .6); }
.jiku .k.b::after { bottom: 100%; }
.close { position: absolute; top: 26px; right: calc(var(--hw) + 18px); z-index: 5; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(28, 22, 18, .25); border-radius: 50%; background: transparent; color: var(--sumi); font: 400 24px/1 var(--sans); cursor: pointer; transition: border-color .3s, background-color .3s; }
.close:hover { border-color: var(--sumi); background: rgba(28, 22, 18, .06); }
.seal { position: absolute; right: calc(var(--hw) + 22px); bottom: 34px; z-index: 5; width: 40px; padding: 5px 0 6px; border: 2px solid var(--shu); border-radius: 2px; color: var(--shu); font: 800 15px/1.15 var(--serif); text-align: center; opacity: .78; pointer-events: none; transform: rotate(-3deg); }
.page { position: absolute; top: 22px; bottom: 22px; left: var(--rw); right: var(--hw); z-index: 1; display: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(28, 22, 18, .3) transparent; padding: 30px clamp(30px, 4.6vw, 66px) 40px; }
.page::-webkit-scrollbar { width: 6px; } .page::-webkit-scrollbar-thumb { background: rgba(28, 22, 18, .3); border-radius: 3px; }
.page.cur { display: block; }
.page.bye { opacity: 0; transition: opacity .3s ease; }
.pg-k { position: absolute; right: 6%; top: 8%; width: min(46%, 360px); aspect-ratio: 1; pointer-events: none; opacity: .055; z-index: 0; }
.pg-k.tall { aspect-ratio: 1000 / 2040; width: min(24%, 180px); }
.pg-k svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pg-k path { fill: var(--sumi); }
.page > *:not(.pg-k) { position: relative; z-index: 1; }
.page h2 { font: 800 clamp(30px, 2.7vw, 44px)/1.06 var(--serif); letter-spacing: -.012em; margin: 0 0 22px; max-width: 16em; text-wrap: balance; }
.page h3 { font: 700 clamp(19px, 1.5vw, 23px)/1.3 var(--serif); margin: 30px 0 12px; }
.page p { margin: 0 0 16px; font: 500 17px/1.65 var(--serif); color: var(--sumi); max-width: 38em; }
.page a { color: var(--gold-on); }
.fine { font: 400 13.5px/1.65 var(--sans) !important; color: var(--sumi-dim) !important; max-width: 40em; }
.live-line { font: 400 15px/1.7 var(--sans) !important; color: var(--sumi-dim) !important; border-left: 2px solid var(--gold); padding-left: 16px; margin: 22px 0 !important; }
.live-line b, .traits b { color: var(--sumi); font-weight: 500; }

/* buttons, on the paper */
.btn { font: 500 15px/1 var(--sans); border-radius: 2px; padding: 14px 20px; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
a.btn { display: inline-block; text-decoration: none; }
.btn-line { background: transparent; color: var(--sumi); border: 1px solid rgba(28, 22, 18, .4); }
.btn-line:hover { border-color: var(--gold-on); box-shadow: 0 0 0 1px rgba(122, 90, 28, .35); }
.btn-solid { background: var(--sumi); color: var(--paper); border: 1px solid var(--sumi); font-weight: 700; }
.btn-solid:hover { background: var(--shu); border-color: var(--shu); color: #fff; }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.btn-text { background: none; border: 0; padding: 0; color: var(--gold-on); font: 500 15px/1.4 var(--sans); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* the dial */
.dial { margin: 6px 0 22px; max-width: 38em; }
.dial-v { display: flex; align-items: baseline; gap: 16px; font: 800 50px/1 var(--serif); font-variant-numeric: tabular-nums; margin-bottom: 10px; letter-spacing: -.01em; }
.dial-m { font: 500 16px/1 var(--sans); color: var(--gold-on); letter-spacing: 0; }
.dial input { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; cursor: grab; }
.dial input:active { cursor: grabbing; }
.dial input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #a8321f 0 30%, #8d8178 30% 42.5%, #4d4238 42.5% 57.5%, #8d8178 57.5% 70%, #d07a2a 70%); }
.dial input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--sumi); box-shadow: 0 0 0 5px rgba(122, 90, 28, .22), 0 0 22px rgba(255, 170, 80, .5); }
.dial input::-moz-range-track { height: 2px; background: linear-gradient(90deg, #a8321f 0 30%, #8d8178 30% 42.5%, #4d4238 42.5% 57.5%, #8d8178 57.5% 70%, #d07a2a 70%); }
.dial input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--sumi); box-shadow: 0 0 0 5px rgba(122, 90, 28, .22), 0 0 22px rgba(255, 170, 80, .5); }
.dial-scale { display: grid; grid-template-columns: 12fr 5fr 6fr 5fr 12fr; margin-top: 6px; font: 400 12.5px/1.2 var(--sans); color: var(--sumi-dim); text-align: center; }
.dial .fine { margin-top: 16px; }

/* the mint */
.status { font-size: 21px !important; line-height: 1.45 !important; margin-bottom: 20px !important; }
.count { display: flex; gap: clamp(18px, 3vw, 44px); margin: 0 0 30px; }
.count[hidden] { display: none; }
.count span { display: grid; gap: 8px; font: 500 12.5px/1 var(--sans); color: var(--sumi-dim); }
.count b { font: 800 clamp(40px, 4.4vw, 64px)/.92 var(--serif); color: var(--sumi); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(18px, 2.6vw, 40px); margin: 0 0 28px; max-width: 46rem; }
.facts div { padding: 14px 0 16px; border-top: 1px solid var(--sumi-line); }
.facts dt { font: 500 12.5px/1 var(--sans); color: var(--sumi-dim); margin-bottom: 9px; }
.facts dd { margin: 0; font: 700 19px/1.3 var(--serif); overflow-wrap: anywhere; }
.facts small { display: block; margin-top: 6px; font: 400 13px/1.5 var(--sans); color: var(--sumi-dim); }
.facts small:empty { display: none; }
.facts[hidden] { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.actions:empty { display: none; }
.txnote { font: 400 15.5px/1.6 var(--sans) !important; color: var(--sumi) !important; border-left: 2px solid var(--gold); padding-left: 14px; margin: 0 0 22px !important; }
.txnote[hidden] { display: none; }
.find { display: grid; gap: .6rem; margin: 0 0 22px; max-width: 30rem; }
.find[hidden] { display: none; }
.find label { font: 500 14.5px/1.4 var(--sans); color: var(--sumi-dim); }
.find-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.find input { flex: 1 1 9rem; min-width: 0; padding: .7rem .9rem; background: rgba(255, 250, 240, .5); border: 1px solid rgba(28, 22, 18, .35); border-radius: 2px; color: var(--sumi); font: inherit; }
.find input:focus-visible { outline: 2px solid var(--gold-on); outline-offset: 2px; }

/* the collection */
.traits { font: 400 15px/1.7 var(--sans) !important; color: var(--sumi-dim) !important; min-height: 5.2em; border-left: 2px solid var(--gold); padding-left: 16px; margin: 0 0 22px !important; }
.traits .caret { display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--sumi); animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 60px); max-width: 46rem; margin-bottom: 22px; }
.two h3 { margin-top: 6px; }
.roll { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--sumi-line); }
.roll li { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 7px; align-items: baseline; padding: 9px 0 11px; border-top: 1px solid var(--sumi-line); }
.rl-n { font: 700 17px/1.2 var(--serif); }
.rl-c { font: 700 16px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.rl-b { grid-column: 1 / -1; display: block; height: 2px; width: calc(var(--n) / var(--of, 400) * 100%); min-width: 3px; background: linear-gradient(90deg, var(--gold-on), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 100ms + 700ms); }
.on .rl-b { transform: scaleX(1); }
.roll li:nth-child(1) { --i: 0; } .roll li:nth-child(2) { --i: 1; } .roll li:nth-child(3) { --i: 2; } .roll li:nth-child(4) { --i: 3; } .roll li:nth-child(5) { --i: 4; } .roll li:nth-child(6) { --i: 5; }
.ranks li:nth-child(1) { --n: 400; } .ranks li:nth-child(2) { --n: 300; } .ranks li:nth-child(3) { --n: 150; } .ranks li:nth-child(4) { --n: 100; } .ranks li:nth-child(5) { --n: 47; } .ranks li:nth-child(6) { --n: 3; }
.roll.small { --of: 250; }
.roll.small li:nth-child(1) { --n: 50; } .roll.small li:nth-child(2) { --n: 100; } .roll.small li:nth-child(3), .roll.small li:nth-child(4) { --n: 175; } .roll.small li:nth-child(5), .roll.small li:nth-child(6) { --n: 250; }
.more { margin-top: 18px; max-width: 46rem; border-top: 1px solid var(--sumi-line); border-bottom: 1px solid var(--sumi-line); }
.more summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; cursor: pointer; font: 700 17px/1.3 var(--serif); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after, .qa summary::after { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(var(--gold-on), var(--gold-on)) center / 100% 1px no-repeat, linear-gradient(var(--gold-on), var(--gold-on)) center / 1px 100% no-repeat; transition: transform .45s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
.addr { list-style: none; margin: 4px 0 14px; padding: 0; }
.addr li { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); column-gap: 18px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--sumi-line); }
.ad-n { font: 700 15.5px/1.4 var(--serif); }
.ad-a { font: 400 13px/1.6 var(--sans); overflow-wrap: anywhere; text-decoration-color: rgba(122, 90, 28, .6); text-underline-offset: 5px; }
.hash { overflow-wrap: anywhere; }

/* the market */
.src { font: 400 14.5px/1.6 var(--sans) !important; color: var(--sumi-dim) !important; }
.board { width: 100%; max-width: 46rem; border-collapse: collapse; font: 400 16px/1.3 var(--sans); font-variant-numeric: tabular-nums; margin: 6px 0 22px; }
.board th, .board td { text-align: left; padding: 15px 12px 15px 0; border-top: 1px solid var(--sumi-line); }
.board thead th { font: 500 12.5px/1 var(--sans); color: var(--sumi-dim); border-top: 0; padding-bottom: 10px; }
.board tbody th { font: 800 22px/1 var(--serif); }
.b-p { font: 700 20px/1 var(--serif); }
.b-c { font-size: 17px; }
.b-m { font: 700 19px/1 var(--serif); }
.up { color: #8a5a12; } .down { color: #a8321f; }
.m-furious { color: #b5471b; } .m-charged { color: #8a5a12; } .m-calm { color: var(--sumi); } .m-tense { color: #5c5270; } .m-broken { color: #a8321f; } .m-asleep { color: #4f5a7a; }

/* agents */
.trio { list-style: none; margin: 4px 0 20px; padding: 0; max-width: 46rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(18px, 2.6vw, 40px); }
.trio li { padding: 14px 0 0; border-top: 1px solid var(--sumi-line); }
.trio h3 { margin: 0 0 8px; font-size: 19px; }
.trio p { font: 400 14.5px/1.65 var(--sans) !important; color: var(--sumi-dim) !important; }
.trio .nm { color: var(--sumi); white-space: nowrap; }
.agent .facts { margin-bottom: 20px; }
.agent .facts a { text-decoration-color: rgba(122, 90, 28, .6); text-underline-offset: 5px; }
.steps { list-style: none; margin: 0 0 20px; padding: 0; font: 400 15px/1.6 var(--sans); color: var(--sumi-dim); }
.steps li { position: relative; padding: 5px 0 5px 28px; }
.steps li::before { content: ""; position: absolute; left: 4px; top: .9em; width: 9px; height: 9px; border-radius: 50%; background: #b9ab90; transition: background-color .6s, box-shadow .6s; }
.steps li.now { color: var(--sumi); }
.steps li.now::before { background: var(--gold-on); box-shadow: 0 0 10px 2px rgba(122, 90, 28, .4); }
.steps li.done { color: var(--sumi); }
.steps li.done::before { background: var(--shu); }

/* questions */
.qa { max-width: 46rem; border-bottom: 1px solid var(--sumi-line); margin-bottom: 22px; }
.qa details { border-top: 1px solid var(--sumi-line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 15px 0; cursor: pointer; font: 700 18px/1.3 var(--serif); transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--gold-on); }
.qa-a { max-width: 40rem; padding: 0 0 18px; }
.qa-a p { font: 400 15.5px/1.7 var(--sans); color: var(--sumi-dim); margin-bottom: 10px; }
.qa-a p:last-child { margin-bottom: 0; }
.qa-a i { font-style: normal; color: var(--sumi); }

/* ---------- the candle ---------- */
.candle { position: fixed; left: 0; top: 0; z-index: 45; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; will-change: transform; }
.candle.show { opacity: 1; }
.c-glow { position: absolute; left: -110px; top: -122px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 176, 96, .2), rgba(255, 140, 60, .07) 48%, rgba(255, 120, 40, 0)); mix-blend-mode: screen; transition: transform .45s var(--ease); }
.c-flame { position: absolute; left: -5px; top: -19px; width: 10px; height: 20px; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; background: radial-gradient(ellipse 60% 58% at 50% 70%, #fffaf0 0 22%, #ffd47e 40%, #ff8f2e 66%, rgba(255, 96, 24, 0) 78%); filter: drop-shadow(0 0 6px rgba(255, 150, 60, .9)); transform-origin: 50% 100%; animation: cflick 1.3s ease-in-out infinite alternate; transition: transform .35s var(--ease); }
.candle.hover .c-glow { transform: scale(1.45); }
.candle.hover .c-flame { transform: scale(1.35); }
@keyframes cflick { 0% { transform: scale(1, 1) skewX(0); } 40% { transform: scale(.92, 1.08) skewX(3deg); } 70% { transform: scale(1.04, .95) skewX(-2deg); } 100% { transform: scale(.97, 1.05) skewX(1deg); } }
.candle-on, .candle-on * { cursor: none !important; }

/* ---------- wallet dialog ---------- */
.dlg { width: min(440px, 92vw); padding: 30px; color: var(--bone); background: var(--ink-2); border: 1px solid rgba(237, 230, 218, .16); border-radius: 4px; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8); }
.dlg::backdrop { background: rgba(10, 8, 6, .66); }
.dlg-h { font: 700 27px/1.2 var(--serif); margin: 0 0 20px; }
.dlg-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.dlg-list button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 14px; background: transparent; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font: 500 16px/1 var(--sans); text-align: left; transition: border-color .2s; }
.dlg-list button:hover { border-color: var(--gold); }
.dlg-list img { width: 28px; height: 28px; border-radius: 6px; }
.dlg .fine { margin-bottom: 16px; color: var(--cinder) !important; }
.dlg .btn-line { color: var(--bone); border-color: rgba(237, 230, 218, .32); }

/* ---------- phones and narrow windows: tablets at the bottom, the scroll unrolls from the top ---------- */
@media (max-width: 860px), (max-aspect-ratio: 9 / 10) {
  :root { --bar: 62px; --pad: 22px; --fuda: 0px; }
  body { font-size: 17.5px; }
  .brand-l { display: none; }
  .hero { right: 0; padding-bottom: 112px; }
  .hero-h { font-size: clamp(64px, 20vw, 120px); }
  .hero-sub { font-size: 17.5px; margin-top: 20px; }
  .readout { margin-top: 22px; }
  .ro-a { font-size: 24px; }
  .foot-links { gap: 18px; margin-top: 18px; }
  .fuda { top: auto; bottom: 0; left: 0; right: 0; flex-direction: row; justify-content: space-evenly; gap: 6px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); transform: none; background: linear-gradient(rgba(13, 10, 8, 0), rgba(13, 10, 8, .85) 40%); }
  .loading .fuda { transform: translateY(14px); }
  .tab { --d: 11px; width: 46px; height: 62px; padding: 10px 0 8px; grid-template-rows: 1fr; align-items: center; }
  /* in a row at the bottom: the screen's centre is above, so the top and the side facing the centre show */
  .blk { transform: perspective(800px); transform-origin: calc(50vw - 10px - (1 + var(--i)) * (100vw - 296px) / 7 - var(--i) * 46px) calc(72px - 50vh); }
  .tab-l { display: none; }
  .tab { place-items: center; }
  .tab-k.tall { height: 44px; width: 22px; }
  .tab:hover { transform: none; }
  .tab[aria-expanded="true"] { transform: translateY(-8px); }
  .maki { --rw: 22px; --hw: 22px; --kn: 12px; --sh: 180deg; right: 19px; left: 19px; top: calc(var(--bar) + 16px); bottom: 100px; width: auto; height: auto; transform: none; }
  .shade { left: 0; top: 0; right: 0; bottom: calc(var(--run) + var(--rw) / 2); }
  .paper { clip-path: inset(0 0 calc(var(--run) + var(--rw) / 2) 0); }
  .paper::after { background:
    linear-gradient(rgba(146, 108, 38, .55), rgba(146, 108, 38, .55)) 13px 0 / 1px 100% no-repeat,
    linear-gradient(rgba(146, 108, 38, .3), rgba(146, 108, 38, .3)) 17px 0 / 1px 100% no-repeat,
    linear-gradient(rgba(146, 108, 38, .55), rgba(146, 108, 38, .55)) calc(100% - 13px) 0 / 1px 100% no-repeat,
    linear-gradient(rgba(146, 108, 38, .3), rgba(146, 108, 38, .3)) calc(100% - 17px) 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(120, 86, 40, .2), rgba(120, 86, 40, 0) 7%, rgba(120, 86, 40, 0) 93%, rgba(120, 86, 40, .2)); }
  .hyoshi { left: 0; right: 0; bottom: auto; width: auto; height: var(--hw);
    background: linear-gradient(180deg, rgba(0, 0, 0, .58) 0%, rgba(255, 236, 200, .17) 23%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, .3) 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cg fill='none' stroke='%23c9a14b' stroke-opacity='.5' stroke-width='.7'%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='12' cy='0' r='6'/%3E%3Ccircle cx='0' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='6' cy='6' r='6'/%3E%3C/g%3E%3Ccircle cx='6' cy='0' r='.7' fill='%23e8c878' fill-opacity='.55'/%3E%3Ccircle cx='0' cy='6' r='.7' fill='%23e8c878' fill-opacity='.55'/%3E%3C/svg%3E") 0 0 / 12px 12px, #1c1a2e;
    box-shadow: 0 1px 0 #a7802f, 0 2px 0 rgba(255, 232, 180, .3), 0 10px 12px -9px rgba(40, 24, 8, .5); }
  .hyoshi::before { top: calc(100% + 2px); bottom: auto; left: 0; right: 0; width: auto; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='20'%3E%3Crect x='108.8' y='-0.4' width='1.6' height='1.9' fill='%23c9a14b' fill-opacity='0.63' transform='rotate%2885 109.6 0.6%29'/%3E%3Crect x='35.2' y='-0.4' width='1.7' height='1.0' fill='%23b88a38' fill-opacity='0.70' transform='rotate%2837 36.0 0.1%29'/%3E%3Crect x='19.4' y='-1.1' width='1.6' height='2.1' fill='%23d9b462' fill-opacity='0.69' transform='rotate%2810 20.2 0.0%29'/%3E%3Crect x='128.7' y='12.9' width='1.8' height='2.1' fill='%23b88a38' fill-opacity='0.55' transform='rotate%2817 129.6 14.0%29'/%3E%3Crect x='40.1' y='10.1' width='1.9' height='1.7' fill='%23b88a38' fill-opacity='0.60' transform='rotate%2854 41.1 11.0%29'/%3E%3Crect x='141.4' y='6.3' width='1.6' height='1.6' fill='%23d9b462' fill-opacity='0.69' transform='rotate%2881 142.2 7.1%29'/%3E%3Crect x='109.8' y='18.5' width='1.4' height='1.6' fill='%23c9a14b' fill-opacity='0.55' transform='rotate%2856 110.5 19.3%29'/%3E%3Crect x='46.5' y='3.6' width='0.9' height='0.7' fill='%23d9b462' fill-opacity='0.56' transform='rotate%2877 46.9 4.0%29'/%3E%3Crect x='141.5' y='0.0' width='1.5' height='1.4' fill='%23b88a38' fill-opacity='0.48' transform='rotate%2824 142.3 0.7%29'/%3E%3Crect x='20.4' y='7.3' width='1.2' height='1.2' fill='%23d9b462' fill-opacity='0.54' transform='rotate%2854 21.0 8.0%29'/%3E%3Crect x='6.5' y='16.2' width='0.8' height='0.9' fill='%23d9b462' fill-opacity='0.62' transform='rotate%2820 6.9 16.7%29'/%3E%3Crect x='117.3' y='8.4' width='1.0' height='1.1' fill='%23d9b462' fill-opacity='0.47' transform='rotate%2880 117.8 8.9%29'/%3E%3Crect x='114.2' y='1.0' width='0.8' height='1.0' fill='%23b88a38' fill-opacity='0.48' transform='rotate%2863 114.6 1.6%29'/%3E%3Crect x='98.0' y='-0.4' width='1.5' height='1.4' fill='%23d9b462' fill-opacity='0.60' transform='rotate%2872 98.8 0.4%29'/%3E%3Crect x='46.8' y='0.8' width='0.8' height='0.9' fill='%23c9a14b' fill-opacity='0.72' transform='rotate%2821 47.3 1.2%29'/%3E%3Crect x='102.2' y='-0.7' width='1.4' height='1.3' fill='%23c9a14b' fill-opacity='0.74' transform='rotate%2843 103.0 0.0%29'/%3E%3C/svg%3E") 0 0 / 160px 20px; }
  .jiku { left: 0; right: 0; width: auto; height: var(--rw); top: calc(100% - var(--rw) - var(--run)); bottom: auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .03' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .47 0 0 0 0 .33 0 0 0 .34 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E") 0 calc(var(--u) * 170px) / 300px 120px, linear-gradient(var(--sh), #66583f 0%, #a19172 11%, #d4c7aa 27%, #ede3cc 40%, #f7efdc 46%, #e3d7bc 57%, #c0b190 74%, #8b7b5a 89%, #574a33 100%);
    box-shadow: 0 8px 11px -6px rgba(58, 38, 16, .5), inset 1px 0 0 rgba(255, 250, 235, .35), inset -1px 0 0 rgba(80, 58, 28, .35); }
  .jiku .k { top: 50%; left: auto; width: var(--kn); height: calc(100% + 2px); transform: translateY(-50%); }
  .jiku .k::after { top: 50%; left: auto; right: auto; width: 3px; height: 70%; transform: translateY(-50%); }
  .jiku .k.t { right: calc(100% + 3px); bottom: auto; border-radius: 4px 2px 2px 4px / 5px 2px 2px 5px; }
  .jiku .k.t::after { left: 100%; top: 50%; }
  .jiku .k.b { top: 50%; left: calc(100% + 3px); border-radius: 2px 4px 4px 2px / 2px 5px 5px 2px; }
  .jiku .k.b::after { right: 100%; bottom: auto; top: 50%; }
  .jiku .k.t { box-shadow: 0 2px 5px rgba(0, 0, 0, .5), inset 1.5px 0 0 #b88a38, inset 0 0 0 .5px rgba(0, 0, 0, .6); }
  .jiku .k.b { box-shadow: 0 2px 5px rgba(0, 0, 0, .5), inset -1.5px 0 0 #b88a38, inset 0 0 0 .5px rgba(0, 0, 0, .6); }
  .page { left: 0; right: 0; top: var(--hw); bottom: var(--rw); padding: 24px 26px 40px; }
  .close { top: calc(var(--hw) + 12px); right: 14px; width: 36px; height: 36px; }
  .seal { right: 16px; bottom: calc(var(--rw) + 14px); width: 32px; font-size: 12px; }
  .pg-k { width: 52%; right: 2%; top: 4%; }
  .page h2 { font-size: clamp(27px, 7.4vw, 36px); margin-bottom: 16px; padding-right: 36px; }
  .page p { font-size: 16px; }
  .dial-v { font-size: 40px; }
  .count { gap: 16px; margin-bottom: 24px; } .count b { font-size: 11vw; }
  .facts { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .trio li { padding: 12px 0 14px; }
  .board { font-size: 15px; } .board th, .board td { padding: 12px 8px 12px 0; }
  .board tbody th { font-size: 19px; } .b-p { font-size: 17px; } .b-c { font-size: 15px; } .b-m { font-size: 16px; }
  .addr li { grid-template-columns: 1fr; row-gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .kin .l, .rv, .tab, .fuda, .hero, .bar, .ld-k, .rl-b, .maki, .page.bye, .scrim, summary::after { transition: none !important; }
  .kin .l, .rv { opacity: 1; transform: none; filter: none; }
  .rl-b { transform: none !important; }
  .ld-k path { animation: none; fill: rgba(237, 230, 218, .94); stroke-dashoffset: 0; }
  .c-flame, .sound[aria-pressed="true"] .snd-w2 { animation: none; }
}
