/* Noroshi. The opening is the living painting, with a row of wooden tablets on the right;
   every tablet opens a full-screen page over the artwork, in black lacquer and gold. */

@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);
  --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);
  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); }
/* what every warrior is: three facts under the call to mint, kept inside the text column so they never sit on the mask */
.creds { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; max-width: 30rem; margin: 30px 0 0; padding: 0; }
.creds li { padding: 1px 18px 0; border-left: 1px solid rgba(210, 170, 92, .38); }
.creds li:first-child { padding-left: 0; border-left: 0; }
.creds b { display: block; font: 700 23px/1.1 var(--serif); letter-spacing: -.01em; color: var(--bone); white-space: nowrap; text-shadow: 0 1px 18px rgba(10, 8, 6, .7); }
.creds span { display: block; max-width: 10.6em; margin-top: 8px; font: 400 13.5px/1.5 var(--sans); color: var(--cinder); text-shadow: 0 1px 14px rgba(10, 8, 6, .8); }
.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); }
.soon { color: var(--cinder); }
.soon small { margin-left: 6px; font: 500 11.5px/1 var(--sans); color: var(--gold); vertical-align: 4px; }
.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 pages: full screen, black lacquer and gold ----------
   VOICE    quiet and ceremonial, at night: few hues, fine detail, air
   IDEA     an armour case of black lacquer lit by the fire: gold maki-e hairlines, one vermilion seal
   PICTURE  the living warrior itself stands in the opening of every page, on the right
   COLOUR   ink black and warm bone, gold for the lines, vermilion for a single mark
   TYPE     Shippori Mincho B1 for words and numbers, Zen Kaku Gothic New for the small print
   LAYOUT   a full-screen opening, then calm bands up to 1240px, and a grand footer */

/* the bar grows a navigation while a page is open */
.bar { transition: opacity .8s ease, transform .8s var(--ease), background-color .5s ease, box-shadow .5s ease, backdrop-filter .5s ease; }
.bar::before { transition: opacity .5s ease; }
.bar-nav { display: none; position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); align-items: center; gap: clamp(14px, 1.7vw, 30px); }
.bar-nav a { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 44px; text-decoration: none; color: var(--bone-dim); font: 500 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: color .3s; }
.bar-nav .nk { width: 17px; height: 17px; flex: none; fill: currentColor; opacity: .85; }
.bar-nav .nk.tall { width: 10px; height: 21px; }
.bar-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.bar-nav a:hover { color: var(--bone); }
.bar-nav a:hover::after, .bar-nav a[aria-current="page"]::after { transform: scaleX(1); }
.bar-nav a[aria-current="page"] { color: var(--gold-hi); }
.bar-nav .nav-war { color: var(--gold); }
.bar-r { display: flex; align-items: center; gap: 4px; }
.close { display: none; position: relative; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--bone-dim); transition: color .3s; }
.close::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(210, 170, 92, .38); border-radius: 50%; transition: border-color .3s, transform .6s var(--ease); }
.close i { position: absolute; left: 50%; top: 50%; width: 16px; height: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.close i::before { content: ""; position: absolute; inset: 0; background: currentColor; transform: rotate(90deg); }
.close:hover { color: var(--gold-hi); }
.close:hover::after { border-color: var(--gold); transform: rotate(90deg); }
.open .close { display: block; }
.open .bar-nav { display: flex; }
.open .bar::before { background: linear-gradient(rgba(13, 10, 8, .86), rgba(13, 10, 8, 0)); }
.scrolled .bar { background: rgba(13, 10, 8, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(210, 170, 92, .2); }
.scrolled .bar::before { opacity: 0; }
.open .fuda { opacity: 0; pointer-events: none; transform: translate(26px, -50%); transition: opacity .5s ease, transform .6s var(--ease); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* the page layer: full screen over the painting, scrolling on its own */
.view { position: fixed; inset: 0; z-index: 12; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transition: opacity .8s ease, visibility 0s linear .8s; scrollbar-width: thin; scrollbar-color: rgba(210, 170, 92, .35) transparent; }
.view::-webkit-scrollbar { width: 8px; }
.view::-webkit-scrollbar-thumb { background: rgba(210, 170, 92, .26); border-radius: 4px; }
.open .view { visibility: visible; opacity: 1; transition: opacity .8s ease; }
.pages { transition: opacity .32s ease; }
.pages.swap { opacity: 0; }
.page { display: none; }
.page.cur { display: block; }
.page:focus { outline: none; }
.page p { margin: 0 0 16px; }

/* the opening of a page: the text on the left, the living warrior on the right */
.pg-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--bar) + 7vh) var(--pad) 13vh; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 10, 8, .96) 0%, rgba(13, 10, 8, .9) 30%, rgba(13, 10, 8, .5) 50%, rgba(13, 10, 8, .08) 66%, rgba(13, 10, 8, 0) 76%),
    linear-gradient(0deg, var(--ink) 0, rgba(18, 15, 13, 0) 24vh),
    linear-gradient(180deg, rgba(13, 10, 8, .6) 0, rgba(13, 10, 8, 0) 18vh); }
.pg-in { position: relative; z-index: 2; width: min(38rem, 44vw); }
.pg-in.wide { width: min(46rem, 54vw); }
.pg-k { position: absolute; z-index: 1; left: calc(var(--pad) - 4vw); top: 50%; width: min(42vw, 640px); aspect-ratio: 1; transform: translateY(-52%); pointer-events: none; opacity: .06; }
.pg-k.tall { aspect-ratio: 1000 / 2040; width: min(23vw, 330px); }
.pg-k svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pg-k path { fill: rgba(241, 213, 144, 0); stroke: var(--gold-hi); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.page.on .pg-k path { animation: kdraw 2.2s cubic-bezier(.6, .04, .3, 1) forwards, kfill 1.6s ease 2.1s forwards; }
.pg-k path:nth-child(2) { animation-delay: .12s, 2.1s !important; } .pg-k path:nth-child(3) { animation-delay: .24s, 2.1s !important; }
.pg-k path:nth-child(4) { animation-delay: .36s, 2.1s !important; } .pg-k path:nth-child(5) { animation-delay: .48s, 2.1s !important; }
.pg-k path:nth-child(6) { animation-delay: .6s, 2.1s !important; } .pg-k path:nth-child(7) { animation-delay: .72s, 2.1s !important; }
.pg-k path:nth-child(8) { animation-delay: .84s, 2.1s !important; } .pg-k path:nth-child(9) { animation-delay: .96s, 2.1s !important; }
.pg-k path:nth-child(n+10) { animation-delay: 1.08s, 2.1s !important; }
@keyframes kdraw { to { stroke-dashoffset: 0; } }
@keyframes kfill { to { fill: rgba(241, 213, 144, .9); stroke: rgba(241, 213, 144, .15); } }

.pg-eye { display: flex; align-items: center; gap: 14px; margin: 0 0 26px !important; font: 500 12.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.pg-eye .nk { width: 26px; height: 26px; flex: none; fill: var(--gold-hi); }
.pg-eye .nk.tall { width: 15px; height: 31px; }
.pg-eye::after { content: ""; width: 72px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(210, 170, 92, 0)); }
.page h2 { margin: 0 0 26px; font: 800 clamp(42px, 4.5vw, 76px)/1.02 var(--serif); letter-spacing: -.022em; text-wrap: balance; color: var(--bone); text-shadow: 0 8px 44px rgba(0, 0, 0, .5); }
.page h3 { margin: 0 0 14px; font: 700 clamp(20px, 1.6vw, 25px)/1.25 var(--serif); color: var(--bone); }
.pg-lede { margin: 0 0 24px !important; max-width: 32em; font: 500 clamp(18px, 1.32vw, 21px)/1.62 var(--serif); color: var(--bone-dim); }
.prose { margin: 0 0 18px; max-width: 38em; font: 500 18px/1.72 var(--serif); color: var(--bone-dim); }
.page a:not(.btn) { color: var(--gold-hi); text-decoration-color: rgba(210, 170, 92, .45); text-underline-offset: 5px; }
.fine { font: 400 13.5px/1.7 var(--sans); color: var(--cinder); max-width: 46em; }
.live-line { margin: 0 0 28px !important; padding: 2px 0 2px 18px; border-left: 1px solid var(--gold); font: 400 15px/1.7 var(--sans); color: var(--cinder); max-width: 34em; }
.live-line:empty { display: none; }
.live-line b, .traits b { color: var(--bone); font-weight: 500; }

/* lacquer panels: black urushi, a gold edge, gold corners */
.lq { position: relative; padding: clamp(22px, 2.6vw, 38px); background: linear-gradient(160deg, rgba(255, 236, 205, .05), rgba(255, 236, 205, 0) 42%), linear-gradient(180deg, #18130f, #110d0a); border: 1px solid rgba(210, 170, 92, .17); box-shadow: inset 0 1px 0 rgba(255, 232, 190, .07), 0 40px 90px -50px rgba(0, 0, 0, .95); }
.lq::before, .lq::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid rgba(210, 170, 92, .75); pointer-events: none; }
.lq::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.lq::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

/* the bands under the opening */
.band { position: relative; padding: clamp(72px, 11vh, 132px) var(--pad); background: radial-gradient(80% 60% at 50% 0%, rgba(210, 170, 92, .04), rgba(210, 170, 92, 0) 70%), var(--ink); }
.band::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 1px; background: linear-gradient(90deg, rgba(210, 170, 92, 0), rgba(210, 170, 92, .26) 20%, rgba(210, 170, 92, .26) 80%, rgba(210, 170, 92, 0)); }
.band-in { max-width: 1240px; margin: 0 auto; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 84px); align-items: start; }
.band-h { display: flex; align-items: center; gap: 16px; margin: 0 0 28px !important; font: 500 12.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.band-h::after { content: ""; flex: 1; max-width: 220px; height: 1px; background: linear-gradient(90deg, rgba(210, 170, 92, .6), rgba(210, 170, 92, 0)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .25s; }
.in.band-h::after, .in .band-h::after { transform: scaleX(1); }
.rise { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1s ease, transform 1.2s var(--ease); transition-delay: var(--rd, 0ms); }
.rise.in { opacity: 1; transform: none; }

/* buttons */
.btn { font: 500 15px/1 var(--sans); letter-spacing: .02em; border-radius: 2px; padding: 15px 24px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s, transform .35s var(--ease); }
a.btn { display: inline-block; text-decoration: none; }
.btn-solid { background: linear-gradient(180deg, #ecce8a, #b98d3e); color: #1a120a; border: 1px solid #e6c47f; font-weight: 700; box-shadow: 0 12px 30px -14px rgba(210, 170, 92, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(210, 170, 92, .75), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-line { background: rgba(18, 15, 13, .45); color: var(--bone); border: 1px solid rgba(210, 170, 92, .45); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 0 1px rgba(210, 170, 92, .22); }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; transform: none; }
.btn-text { background: none; border: 0; padding: 0; color: var(--gold-hi); font: 500 15px/1.4 var(--sans); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(210, 170, 92, .5); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.btn-text:hover { color: var(--bone); }

/* the dial */
.dial { margin: 4px 0 0; max-width: 34em; }
.dial h3 { margin: 0 0 18px; font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.dial-v { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; font: 800 58px/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--bone); }
.dial-m { font: 500 16px/1 var(--sans); letter-spacing: .04em; color: var(--gold-hi); }
.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, #c4452c 0 30%, #8d7f74 30% 42.5%, #4f453c 42.5% 57.5%, #8d7f74 57.5% 70%, #e0923a 70%); }
.dial input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4d2, #dcb264 55%, #8c6420); box-shadow: 0 0 0 6px rgba(210, 170, 92, .14), 0 0 24px rgba(255, 170, 80, .6); }
.dial input::-moz-range-track { height: 2px; background: linear-gradient(90deg, #c4452c 0 30%, #8d7f74 30% 42.5%, #4f453c 42.5% 57.5%, #8d7f74 57.5% 70%, #e0923a 70%); }
.dial input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4d2, #dcb264 55%, #8c6420); box-shadow: 0 0 0 6px rgba(210, 170, 92, .14), 0 0 24px rgba(255, 170, 80, .6); }
.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(--cinder); text-align: center; }
.dial .fine { margin: 20px 0 16px; }

/* the mint */
.status { margin: 0 0 30px !important; font: 500 clamp(19px, 1.5vw, 23px)/1.5 var(--serif); color: var(--bone-dim); max-width: 30em; }
.count { display: flex; gap: clamp(20px, 3vw, 46px); margin: 0 0 36px; }
.count[hidden] { display: none; }
.count span { display: grid; gap: 12px; font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--cinder); }
.count b { font: 800 clamp(54px, 5.6vw, 100px)/.9 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fbefc8 0%, #e2bd6b 55%, #a87b2c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(210, 170, 92, .22)); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgba(210, 170, 92, .2); }
.facts div { padding: 26px 26px 28px 0; border-bottom: 1px solid rgba(210, 170, 92, .2); }
.facts div:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid rgba(210, 170, 92, .2); }
.facts dt { margin-bottom: 12px; font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 0; font: 700 clamp(22px, 1.9vw, 30px)/1.25 var(--serif); color: var(--bone); overflow-wrap: anywhere; }
.facts small { display: block; margin-top: 8px; font: 400 13.5px/1.5 var(--sans); color: var(--cinder); }
.facts small:empty { display: none; }
.facts[hidden] { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.actions:empty { display: none; }
.txnote { margin: 0 0 22px !important; padding: 2px 0 2px 16px; border-left: 1px solid var(--gold); font: 400 15.5px/1.6 var(--sans); color: var(--bone-dim); max-width: 36em; }
.txnote[hidden] { display: none; }
.find { display: grid; gap: 10px; margin: 0 0 22px; max-width: 30rem; }
.find[hidden] { display: none; }
.find label { font: 500 13px/1.4 var(--sans); letter-spacing: .04em; color: var(--cinder); }
.find-row { display: flex; gap: 10px; flex-wrap: wrap; }
.find input { flex: 1 1 9rem; min-width: 0; padding: 14px 16px; background: rgba(8, 6, 5, .6); border: 1px solid rgba(210, 170, 92, .32); border-radius: 2px; color: var(--bone); font: 500 16px/1 var(--sans); transition: border-color .3s, box-shadow .3s; }
.find input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 170, 92, .16); }
.find input::placeholder { color: rgba(169, 157, 144, .6); }

/* the collection */
.traits { min-height: 5.4em; margin: 0 !important; padding: 2px 0 2px 18px; border-left: 1px solid var(--gold); font: 400 15px/1.75 var(--sans); color: var(--cinder); max-width: 34em; }
.traits .caret { display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--gold-hi); animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); margin: 0 0 44px; }
.two h3 { font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.roll { list-style: none; margin: 0; padding: 0; }
.roll li { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 9px; align-items: baseline; padding: 12px 0 13px; border-top: 1px solid rgba(210, 170, 92, .14); }
.roll li:first-child { border-top: 0; }
.rl-n { font: 700 19px/1.2 var(--serif); color: var(--bone); }
.rl-c { font: 700 18px/1.2 var(--serif); color: var(--gold-hi); 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, #8c6420, var(--gold-hi)); box-shadow: 0 0 10px rgba(210, 170, 92, .35); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 400ms); }
.in .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; }
.addr { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid rgba(210, 170, 92, .2); }
.addr li { display: grid; grid-template-columns: 13rem minmax(0, 1fr); column-gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(210, 170, 92, .2); }
.ad-n { font: 700 17px/1.4 var(--serif); color: var(--bone); }
.page .ad-a { font: 400 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bone-dim); overflow-wrap: anywhere; text-decoration: none; transition: color .3s; }
.page .ad-a:hover { color: var(--gold-hi); }
.hash { overflow-wrap: anywhere; color: var(--bone-dim); }
summary::after { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1px 100% no-repeat; transition: transform .45s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }

/* the market */
.src { margin: 0 0 22px !important; font: 400 14.5px/1.6 var(--sans); color: var(--cinder); max-width: 36em; }
.board-box { max-width: 40rem; padding: 8px clamp(18px, 2vw, 28px) 4px; }
.board { width: 100%; border-collapse: collapse; font: 400 16px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.board th, .board td { text-align: left; padding: 15px 12px 15px 0; border-top: 1px solid rgba(210, 170, 92, .14); }
.board thead th { border-top: 0; padding: 14px 12px 12px 0; font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.board tbody th { font: 800 21px/1 var(--serif); color: var(--bone); }
.b-p { font: 700 19px/1 var(--serif); color: var(--bone); }
.b-c { font-size: 16px; }
.b-m { font: 700 18px/1 var(--serif); }
.up { color: #e7c071; } .down { color: #ec8f79; }
.m-furious { color: #f08a4b; } .m-charged { color: #e7c071; } .m-calm { color: var(--bone); } .m-tense { color: #b9a9d8; } .m-broken { color: #ee7c66; } .m-asleep { color: #92a6d8; }
.moods { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid rgba(210, 170, 92, .2); border-bottom: 1px solid rgba(210, 170, 92, .2); }
.moods li { padding: 28px 18px 26px; border-left: 1px solid rgba(210, 170, 92, .2); }
.moods li:first-child { border-left: 0; padding-left: 0; }
.moods b { display: block; margin-bottom: 10px; font: 800 25px/1.1 var(--serif); }
.moods span { font: 400 13.5px/1.45 var(--sans); color: var(--cinder); }

/* agents */
.trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.trio li { padding: clamp(26px, 2.6vw, 38px); }
.trio h3 { margin-bottom: 14px; font-size: clamp(21px, 1.7vw, 26px); }
.trio p { margin: 0; font: 400 15px/1.72 var(--sans); color: var(--cinder); }
.trio .nm { color: var(--bone); white-space: nowrap; }
.agent .facts { grid-template-columns: 1fr; margin: 4px 0 20px; }
.agent .facts div { padding: 16px 0 !important; border-left: 0 !important; }
.agent .facts dd { font-size: 19px; }
.agent .facts a { text-decoration-color: rgba(210, 170, 92, .5); text-underline-offset: 5px; }
.chains { list-style: none; margin: 4px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chains li { padding: 9px 15px; border: 1px solid rgba(210, 170, 92, .25); border-radius: 999px; font: 500 13px/1 var(--sans); color: var(--bone-dim); background: rgba(255, 240, 215, .025); }
.steps { list-style: none; margin: 0 0 20px; padding: 0; font: 400 15px/1.6 var(--sans); color: var(--cinder); }
.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: #4d4238; transition: background-color .6s, box-shadow .6s; }
.steps li.now { color: var(--bone); }
.steps li.now::before { background: var(--gold); box-shadow: 0 0 12px 2px rgba(210, 170, 92, .5); }
.steps li.done { color: var(--bone); }
.steps li.done::before { background: var(--shu); }

/* questions */
.qa { margin-bottom: 26px; padding: 6px clamp(20px, 2.4vw, 34px); }
.qa details { border-top: 1px solid rgba(210, 170, 92, .16); }
.qa details:first-child { border-top: 0; }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 20px 0; cursor: pointer; font: 700 19px/1.35 var(--serif); color: var(--bone); transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--gold-hi); }
.qa-a { max-width: 42rem; padding: 0 0 22px; }
.qa-a p { margin: 0 0 10px; font: 400 15.5px/1.75 var(--sans); color: var(--cinder); }
.qa-a p:last-child { margin-bottom: 0; }
.qa-a i { font-style: normal; color: var(--bone); }

/* ---------- the footer ---------- */
.foot { position: relative; overflow: hidden; padding: clamp(84px, 13vh, 150px) var(--pad) 34px; border-top: 1px solid rgba(210, 170, 92, .22);
  background: radial-gradient(70% 55% at 50% 118%, rgba(179, 48, 31, .3), rgba(179, 48, 31, 0) 70%), radial-gradient(50% 40% at 18% 0%, rgba(210, 170, 92, .06), rgba(210, 170, 92, 0) 70%), linear-gradient(180deg, #120f0d, #0b0907); }
.foot-fire { position: absolute; left: 50%; bottom: -34%; width: 120%; height: 72%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 140, 60, .13), rgba(255, 140, 60, 0)); pointer-events: none; animation: ember 7s ease-in-out infinite alternate; }
@keyframes ember { from { opacity: .5; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-50%) scale(1.07); } }
.foot-in { position: relative; max-width: 1240px; margin: 0 auto; }
.foot-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-bottom: clamp(52px, 8vh, 88px); border-bottom: 1px solid rgba(210, 170, 92, .2); }
.foot-k { height: clamp(230px, 36vh, 360px); width: auto; overflow: visible; filter: drop-shadow(0 0 30px rgba(210, 170, 92, .12)); }
.foot-k path { fill: rgba(237, 230, 218, 0); stroke: var(--gold); stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.foot-k.in path { animation: kdraw 1.3s cubic-bezier(.6, .04, .3, 1) forwards, ffill 1.1s ease 2.1s forwards; }
.foot-k.in path:nth-child(2) { animation-delay: .09s, 2.1s; } .foot-k.in path:nth-child(3) { animation-delay: .18s, 2.1s; }
.foot-k.in path:nth-child(4) { animation-delay: .27s, 2.1s; } .foot-k.in path:nth-child(5) { animation-delay: .36s, 2.1s; }
.foot-k.in path:nth-child(6) { animation-delay: .45s, 2.1s; } .foot-k.in path:nth-child(7) { animation-delay: .56s, 2.1s; }
.foot-k.in path:nth-child(8) { animation-delay: .65s, 2.1s; } .foot-k.in path:nth-child(9) { animation-delay: .74s, 2.1s; }
.foot-k.in path:nth-child(10) { animation-delay: .83s, 2.1s; } .foot-k.in path:nth-child(11) { animation-delay: .92s, 2.1s; }
.foot-k.in path:nth-child(12) { animation-delay: 1.01s, 2.1s; } .foot-k.in path:nth-child(13) { animation-delay: 1.1s, 2.1s; }
@keyframes ffill { to { fill: rgba(237, 230, 218, .94); stroke: rgba(210, 170, 92, .25); } }
.foot-name { margin: 0 0 16px; font: 800 clamp(66px, 9.4vw, 156px)/.9 var(--serif); letter-spacing: -.045em; color: var(--bone); text-shadow: 0 12px 60px rgba(0, 0, 0, .5); }
.foot-line { margin: 0 0 32px; max-width: 26em; font: 500 clamp(18px, 1.5vw, 22px)/1.55 var(--serif); color: var(--bone-dim); }
.foot-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 1.6fr 1fr; gap: clamp(26px, 3.4vw, 54px); padding: clamp(44px, 7vh, 72px) 0; border-bottom: 1px solid rgba(210, 170, 92, .2); }
.foot-cols h3 { margin: 0 0 20px; font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.foot-cols a { color: var(--bone-dim); text-decoration: none; font: 500 15px/1.4 var(--sans); transition: color .3s; }
.foot-cols a:hover { color: var(--gold-hi); }
.foot-cols .soon { font: 500 15px/1.4 var(--sans); color: var(--cinder); }
.foot-chain a { display: grid; grid-template-columns: 9.2em max-content; justify-content: start; align-items: baseline; column-gap: 18px; width: fit-content; }
.foot-chain .mono { color: var(--cinder); font: 400 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.foot-chain a:hover .mono { color: var(--gold); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 30px; padding-top: 26px; font: 400 13px/1.6 var(--sans); color: var(--cinder); }
.foot-base p { margin: 0; }
.foot-c [lang="ja"] { margin-left: 4px; font: 700 14px/1 var(--serif); color: var(--bone-dim); }
.foot-up { color: var(--gold-hi); text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.foot-up::after { content: " ↑"; }
.foot-up:hover { color: var(--bone); }

/* ---------- 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 ---------- */
@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; }
  .creds { margin-top: 20px; }
  .creds li { padding: 0 13px; }
  .creds b { font-size: 17px; }
  .creds span { display: none; }
  .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); }
  /* pages on a telephone: the tablets stay at the bottom as the menu, the warrior stands above the text */
  .open .fuda { opacity: 1; pointer-events: auto; transform: none; padding-top: 22px; background: linear-gradient(rgba(13, 10, 8, 0), rgba(13, 10, 8, .9) 38%, rgba(13, 10, 8, .97)); transition: opacity .5s ease, transform .5s var(--ease); }
  .open.reading .fuda { transform: translateY(calc(100% + 6px)); }
  .open .bar-nav { display: none; }
  .pg-hero { align-items: flex-end; padding: calc(var(--bar) + 34vh) 22px 118px;
    background: linear-gradient(0deg, var(--ink) 0%, rgba(13, 10, 8, .95) 36%, rgba(13, 10, 8, .55) 60%, rgba(13, 10, 8, 0) 82%), linear-gradient(180deg, rgba(13, 10, 8, .6), rgba(13, 10, 8, 0) 16vh); }
  .pg-in, .pg-in.wide { width: 100%; }
  .pg-k { left: auto; right: -10vw; top: 26%; width: 78vw; opacity: .07; }
  .pg-k.tall { width: 40vw; right: 4vw; }
  .page h2 { font-size: clamp(34px, 9.6vw, 48px); margin-bottom: 20px; }
  .pg-lede { font-size: 17px; }
  .prose { font-size: 17px; }
  .band { padding: 64px 22px; }
  .band::before { left: 22px; right: 22px; }
  .cols2, .two { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div, .facts div:not(:nth-child(3n+1)) { padding: 20px 0 22px; border-left: 0; }
  .facts div:nth-child(2n) { padding-left: 18px; border-left: 1px solid rgba(210, 170, 92, .2); }
  .facts dd { font-size: 21px; }
  .count { gap: 16px; } .count b { font-size: 13.5vw; }
  .dial-v { font-size: 44px; }
  .moods { grid-template-columns: 1fr 1fr; }
  .moods li, .moods li:first-child { padding: 20px 0 18px; border-left: 0; border-top: 1px solid rgba(210, 170, 92, .2); }
  .moods li:nth-child(2n) { padding-left: 18px; border-left: 1px solid rgba(210, 170, 92, .2); }
  .moods li:nth-child(-n+2) { border-top: 0; }
  .trio { grid-template-columns: 1fr; }
  .addr li { grid-template-columns: 1fr; row-gap: 4px; }
  .board th, .board td { padding: 12px 8px 12px 0; }
  .board tbody th { font-size: 18px; } .b-p { font-size: 16px; } .b-c { font-size: 14px; } .b-m { font-size: 15px; }
  .qa summary { font-size: 17px; }
  .foot { padding: 72px 22px calc(112px + env(safe-area-inset-bottom)); }
  .foot-top { grid-template-columns: 1fr; gap: 30px; }
  .foot-k { height: 190px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-chain { grid-column: 1 / -1; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .kin .l, .rv, .tab, .fuda, .hero, .bar, .ld-k, .rl-b, .view, .pages, .rise, .scrim, summary::after { transition: none !important; }
  .kin .l, .rv, .rise { 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; }
  .pg-k path, .foot-k path { animation: none !important; stroke-dashoffset: 0; fill: rgba(241, 213, 144, .9); }
  .c-flame, .sound[aria-pressed="true"] .snd-w2, .foot-fire, .traits .caret { animation: none; }
}
