/* Memoria: the homage. A night page, printed rather than projected: warm paper-white type on a deep
   blue-black, Amano's gold for the marks. Titles are Marcellus at sizes that fill the screen; the
   narration is EB Garamond; the small print is Figtree. One held stage; seven parts play on it. */
.memoria_wrap {
  --me-ink: #f3efe6; --me-soft: rgba(243, 239, 230, .78); --me-dim: rgba(243, 239, 230, .52); --me-line: rgba(243, 239, 230, .18);
  --me-gold: #e7c98e; --me-blue: #a9c6ff; --me-night: #050818;
  --me-display: 'FF Marcellus', 'Marcellus', 'Optima', serif; --me-serif: 'FF Garamond', 'EB Garamond', Garamond, serif; --me-sans: 'FF Figtree', 'Figtree', system-ui, sans-serif;
  --me-gutter: clamp(18px, 3vw, 48px); --me-glide: cubic-bezier(.65, 0, .25, 1); --me-out: cubic-bezier(.16, 1, .3, 1);
  position: relative; z-index: 2; margin-top: -100vh; color: var(--me-ink); font-family: var(--me-sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.memoria_wrap .memoria_contain { position: relative; }
.memoria_wrap .memoria_stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--me-night);
  transform: translate3d(0, var(--hold, 0px), 0); opacity: var(--arrive, 0); }
.memoria_wrap .memoria_stage.is-asleep * { animation-play-state: paused; }
/* a drag travels the worlds: nothing on the stage selects or drags natively */
.memoria_wrap .memoria_stage { -webkit-user-select: none; user-select: none; }
.memoria_wrap .memoria_stage img { -webkit-user-drag: none; }
.memoria_wrap .memoria_sky { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 70% 110%, rgba(64, 86, 170, .28), transparent 60%),
    radial-gradient(90% 60% at 10% -10%, rgba(120, 90, 160, .18), transparent 60%),
    linear-gradient(180deg, #03050f, #060a1f 60%, #0a1230); }
.memoria_wrap .memoria_sky::after { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 38% 64%, #dfe8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 48%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 82%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 58% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 86%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 46%, #fff 50%, transparent 51%); }
.memoria_wrap .memoria_gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: var(--o-gl, 0); }
.memoria_wrap .memoria_part { position: absolute; inset: 0; z-index: 1; visibility: hidden; opacity: 0; }
.memoria_wrap .memoria_part.is-on { visibility: visible; opacity: 1; }
.memoria_wrap button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.memoria_wrap a { color: inherit; text-decoration: none; }
.memoria_wrap .memoria_kicker { position: absolute; left: var(--me-gutter); top: max(5vh, 34px); margin: 0; display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--me-gold); }
.memoria_wrap .memoria_kicker::before { content: ''; flex: none; width: 8px; height: 18px; clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%); background: linear-gradient(160deg, #fff 10%, var(--me-gold) 50%, #6b5428); }
.memoria_wrap .memoria_credit { position: absolute; margin: 0; font-size: 11px; letter-spacing: .06em; color: var(--me-dim); }
.memoria_wrap .memoria_hint { margin: 0; font-size: 12.5px; letter-spacing: .03em; color: var(--me-dim); }
.memoria_wrap .memoria_char { display: inline-block; will-change: transform, opacity; }

/* ---- I. the name: FINAL FANTASY filled with Amano, set to fill the screen ---- */
.memoria_wrap .memoria_name { position: absolute; left: 0; right: 0; top: 50%; margin: 0; display: grid; justify-items: center; transform: translateY(-58%) scale(var(--zoom, 1)); transform-origin: 50% 42%;
  font-family: var(--me-display); font-weight: 400; font-size: min(15.5vw, 27vh); line-height: .84; letter-spacing: .01em; text-transform: uppercase; opacity: var(--name-o, 1); will-change: transform, opacity; }
.memoria_wrap .memoria_name_line { display: block; color: transparent; -webkit-text-stroke: 1px rgba(243, 239, 230, .28);
  background-image: var(--fill); background-size: 140% auto; background-position: var(--pan, 50%) 40%; -webkit-background-clip: text; background-clip: text; }
.memoria_wrap .memoria_name_line + .memoria_name_line { background-position: var(--pan2, 30%) 70%; }
.memoria_wrap .memoria_title_foot { position: absolute; left: var(--me-gutter); right: var(--me-gutter); bottom: max(6vh, 34px); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; opacity: var(--foot-o, 1); }
.memoria_wrap .memoria_date { display: flex; align-items: baseline; gap: 18px; margin: 0; font-family: var(--me-display); font-size: clamp(30px, 3.4vw, 54px); line-height: 1; }
.memoria_wrap .memoria_date span { color: var(--me-dim); }
.memoria_wrap .memoria_date b { font-weight: 400; color: var(--me-gold); }
.memoria_wrap .memoria_date span::before { content: '·'; margin-right: 18px; color: var(--me-line); }
.memoria_wrap .memoria_lede { max-width: 36ch; margin: 0; font-family: var(--me-serif); font-size: clamp(18px, 1.45vw, 23px); line-height: 1.45; color: var(--me-soft); text-align: right; }
.memoria_wrap .is-title-credit { right: var(--me-gutter); top: max(5vh, 34px); }
.memoria_wrap .is-title .memoria_kicker, .memoria_wrap .is-title-credit { opacity: var(--title-o, 1); }
.memoria_wrap .is-worlds > :not(.memoria_glow) { opacity: var(--ui-o, 1); }

/* ---- II. the five worlds ---- */
.memoria_wrap .memoria_glow { position: absolute; inset: -12%; pointer-events: none; opacity: .2; filter: blur(80px) saturate(1.5) brightness(.7); }
.memoria_wrap .memoria_glow_img { width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s; }
/* the left column: card above, index and hint below, one flex column */
.memoria_wrap .memoria_left { position: absolute; z-index: 2; left: var(--me-gutter); top: 11vh; bottom: max(4.5vh, 26px); width: min(30vw, 440px); display: flex; flex-direction: column; justify-content: space-between; gap: 2.4vh; }
.memoria_wrap .memoria_info { position: relative; }
.memoria_wrap .memoria_left_foot { display: grid; gap: 1.6vh; }
.memoria_wrap .memoria_count { display: flex; align-items: baseline; gap: 8px; margin: 0 0 3vh; font-size: 12px; letter-spacing: .14em; color: var(--me-dim); }
.memoria_wrap .memoria_count b { font-family: var(--me-display); font-weight: 400; font-size: 30px; letter-spacing: 0; color: var(--me-ink); }
.memoria_wrap .memoria_count_label { margin-left: 10px; text-transform: uppercase; color: var(--me-gold); font-weight: 600; letter-spacing: .24em; }
.memoria_wrap .memoria_logo { display: block; width: auto; max-width: min(100%, 380px); height: auto; max-height: 14vh; margin: 0 0 2.6vh -4px; filter: drop-shadow(0 6px 28px rgba(0, 0, 0, .5)); }
/* the logo carries the name; the heading stays for screen readers */
.memoria_wrap .memoria_world { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.memoria_wrap .memoria_world_line { margin: 0 0 3vh; font-family: var(--me-serif); font-size: clamp(17px, 1.3vw, 21px); line-height: 1.45; color: var(--me-soft); }
.memoria_wrap .memoria_facts { display: grid; grid-template-columns: auto 1fr; gap: 9px 22px; margin: 0 0 3.4vh; padding-top: 2.4vh; border-top: 1px solid var(--me-line); font-size: 13.5px; }
.memoria_wrap .memoria_facts dt { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--me-dim); padding-top: 3px; }
.memoria_wrap .memoria_facts dd { margin: 0; color: var(--me-ink); }
.memoria_wrap .memoria_relive { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px; border: 1px solid rgba(231, 201, 142, .5); border-radius: 999px; font-size: 13px; letter-spacing: .06em; color: var(--me-gold); transition: background .3s, color .3s; pointer-events: auto; }
.memoria_wrap .memoria_relive:hover { background: var(--me-gold); color: var(--me-night); }
.memoria_wrap .memoria_relive i { font-style: normal; }
/* the info changes in two beats: out, the new words in */
.memoria_wrap .memoria_info > * { transition: opacity .5s var(--me-glide), transform .7s var(--me-out); }
.memoria_wrap .memoria_info.is-turning > :not(.memoria_count) { opacity: 0; transform: translateY(14px); }
/* two more of the game's pieces, pinned to the painting's corners (memoria.js), each at its own depth */
.memoria_wrap .memoria_sat { position: absolute; z-index: 1; left: 0; top: 0; margin: 0; transform: translate3d(calc(var(--x, -999px) + var(--px, 0px)), calc(var(--y, 0px) + var(--py, 0px)), 0); will-change: transform; }
.memoria_wrap .memoria_sat.is-a { width: min(11.5vw, 23vh); }
.memoria_wrap .memoria_sat.is-b { width: min(8.4vw, 17vh); }
.memoria_wrap .memoria_sat_frame { position: relative; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(243, 239, 230, .25);
  clip-path: inset(var(--wipe, 0%) 0 0 0); transition: clip-path 1s var(--me-glide); }
.memoria_wrap .memoria_sat.is-hidden .memoria_sat_frame { --wipe: 100%; transition-duration: .45s; }
.memoria_wrap .memoria_sat img { display: block; width: 100%; height: auto; transform: scale(1.08); transition: transform 1.6s var(--me-out); }
.memoria_wrap .memoria_sat.is-hidden img { transform: scale(1.25); }
.memoria_wrap .memoria_sat_cap { display: inline-block; margin: 8px 0 0; padding: 3px 7px; border-radius: 3px; background: rgba(5, 8, 24, .78); font-size: 10.5px; letter-spacing: .04em; color: var(--me-soft); }
.memoria_wrap .is-hero-credit { left: 0; top: 0; transform: translate3d(var(--cx, -999px), var(--cy, 0px), 0); max-width: 40vw; text-align: right; }
.memoria_wrap .memoria_index { display: flex; gap: 6px; }
.memoria_wrap .memoria_index_btn { position: relative; display: grid; justify-items: start; gap: 2px; padding: 10px 16px 12px 0; min-width: 64px; text-align: left; color: var(--me-dim); pointer-events: auto; transition: color .3s; }
.memoria_wrap .memoria_index_btn b { font-family: var(--me-display); font-weight: 400; font-size: 24px; line-height: 1; }
.memoria_wrap .memoria_index_btn span { font-size: 11px; letter-spacing: .14em; }
.memoria_wrap .memoria_index_btn::after { content: ''; position: absolute; left: 0; right: 16px; bottom: 0; height: 1px; background: var(--me-line); }
.memoria_wrap .memoria_index_btn::before { content: ''; position: absolute; left: 0; right: 16px; bottom: 0; height: 1px; background: var(--me-gold); transform: scaleX(var(--p, 0)); transform-origin: left; z-index: 1; }
.memoria_wrap .memoria_index_btn:hover, .memoria_wrap .memoria_index_btn.is-here { color: var(--me-ink); }
.memoria_wrap .is-worlds .memoria_hint { max-width: 40ch; }
.memoria_wrap .is-worlds .memoria_sat { pointer-events: none; }

/* ---- the makers ---- */
.memoria_wrap .memoria_maker_num { margin: 0 0 6px; font-family: var(--me-display); font-size: 15px; color: var(--me-gold); letter-spacing: .1em; }
.memoria_wrap .memoria_role { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--me-dim); }
.memoria_wrap .memoria_maker_name { margin: 0; font-family: var(--me-display); font-weight: 400; font-size: clamp(30px, 2.8vw, 48px); line-height: 1.04; }
.memoria_wrap .memoria_maker_name.is-huge { font-size: clamp(40px, 5.2vw, 92px); line-height: .98; }
.memoria_wrap .memoria_fact { max-width: 36ch; margin: 20px 0 14px; font-family: var(--me-serif); font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--me-soft); }
.memoria_wrap .memoria_portrait { margin: 0; }
.memoria_wrap .memoria_portrait_frame { position: relative; aspect-ratio: 640 / 820; clip-path: polygon(50% 0, 100% 14%, 100% 86%, 50% 100%, 0 86%, 0 14%); background: linear-gradient(160deg, rgba(243, 239, 230, .85), rgba(120, 140, 210, .3)); }
.memoria_wrap .memoria_portrait_frame img { position: absolute; inset: 1.5px; width: calc(100% - 3px); height: calc(100% - 3px); object-fit: cover; clip-path: polygon(50% 0, 100% 14%, 100% 86%, 50% 100%, 0 86%, 0 14%);
  transform: scale(var(--ps, 1.12)); transition: transform 2.4s var(--me-out); filter: grayscale(1) contrast(1.05); }
.memoria_wrap .memoria_portrait figcaption { margin-top: 10px; font-size: 10.5px; letter-spacing: .05em; color: var(--me-dim); text-align: center; }
/* I: Sakaguchi. His name crosses the screen in outline and fills as you read */
.memoria_wrap .memoria_big { position: absolute; left: var(--me-gutter); right: var(--me-gutter); top: 9vh; margin: 0; font-family: var(--me-display); font-size: min(10.2vw, 25vh); line-height: .9; text-transform: uppercase; letter-spacing: -.005em; pointer-events: none; }
.memoria_wrap .memoria_big_line { display: block; width: max-content; color: transparent; -webkit-text-stroke: 1px rgba(243, 239, 230, .3);
  background: linear-gradient(90deg, var(--me-ink) 0 var(--fill-l, 0%), transparent var(--fill-l, 0%)); -webkit-background-clip: text; background-clip: text;
  transform: translate3d(var(--bx, 0px), 0, 0); }
.memoria_wrap .memoria_big_line + .memoria_big_line { margin-left: 9vw; --fill-l: var(--fill-2, 0%); transform: translate3d(calc(var(--bx, 0px) * -1), 0, 0); }
.memoria_wrap .is-sakaguchi .memoria_portrait { position: absolute; right: 10vw; top: 24vh; width: min(22vw, 40vh); z-index: 1; }
.memoria_wrap .is-sakaguchi .memoria_maker_text { position: absolute; left: var(--me-gutter); bottom: max(7vh, 36px); width: min(40vw, 560px); }
/* II: Amano. His painting in ink; you paint its colour back in */
.memoria_wrap .memoria_paint { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.memoria_wrap .is-amano::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 8, 24, .82) 0, rgba(5, 8, 24, .5) 34%, transparent 58%), linear-gradient(0deg, rgba(5, 8, 24, .55), transparent 30%); }
.memoria_wrap .memoria_amano_text { position: absolute; z-index: 2; left: var(--me-gutter); bottom: max(8vh, 40px); width: min(36vw, 520px); pointer-events: none; }
.memoria_wrap .memoria_amano_photo { position: absolute; z-index: 2; left: var(--me-gutter); top: 9vh; width: min(7vw, 13vh); margin: 0; }
.memoria_wrap .is-paint-credit { z-index: 2; right: var(--me-gutter); bottom: max(4vh, 24px); text-align: right; color: rgba(5, 8, 24, .7); background: rgba(243, 239, 230, .75); padding: 4px 8px; }
/* III: Uematsu. A staff across the screen */
.memoria_wrap .memoria_uematsu_head { position: absolute; left: var(--me-gutter); top: 9vh; display: flex; align-items: flex-end; gap: 26px; }
.memoria_wrap .memoria_uematsu_head .memoria_portrait { width: min(8.5vw, 15vh); }
/* his photograph is cut at the brow, so his crystal stands flat on top and comes to its point below */
.memoria_wrap .memoria_uematsu_head .memoria_portrait_frame, .memoria_wrap .memoria_uematsu_head .memoria_portrait_frame img { clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%); }
.memoria_wrap .is-uematsu .memoria_maker_name { font-size: clamp(40px, 5.6vw, 100px); line-height: .96; }
.memoria_wrap .memoria_staff { position: absolute; left: 0; top: 34vh; width: 100%; height: 34vh; display: block; touch-action: pan-y; cursor: none; }
.memoria_wrap .memoria_uematsu_foot { position: absolute; left: var(--me-gutter); bottom: max(6vh, 32px); width: min(46vw, 640px); }
.memoria_wrap .memoria_uematsu_foot .memoria_credit { position: static; margin-top: 10px; }

/* ---- VI. sixteen worlds ---- */
.memoria_wrap .memoria_sixteen_title { position: absolute; left: var(--me-gutter); top: calc(max(5vh, 34px) + 34px); margin: 0; max-width: 18ch; font-family: var(--me-display); font-size: clamp(30px, 3vw, 52px); line-height: 1.05; }
.memoria_wrap .memoria_track { position: absolute; left: 0; top: 30vh; display: flex; align-items: flex-end; gap: 4.2vw; margin: 0; padding: 0 var(--me-gutter); list-style: none; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.memoria_wrap .memoria_num { position: relative; display: grid; justify-items: start; gap: 14px; flex: none; outline: none; }
.memoria_wrap .memoria_num.is-ours { cursor: pointer; }
.memoria_wrap .memoria_num b { font-family: var(--me-display); font-weight: 400; font-size: 46vh; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(243, 239, 230, .22);
  background-image: linear-gradient(105deg, transparent 38%, rgba(243, 239, 230, .38) 50%, transparent 62%); background-size: 300% 100%; background-position: 110% 0; -webkit-background-clip: text; background-clip: text;
  transition: -webkit-text-stroke-color .4s, transform .8s var(--me-out), opacity .5s, background-position 1.4s var(--me-glide), background-size .9s var(--me-out); }
/* the eleven not remembered here: a light passes through the numeral, the caption names it */
.memoria_wrap .memoria_num:not(.is-ours):hover b , .memoria_wrap .memoria_num:not(.is-ours):focus-visible b  { background-position: -10% 0; -webkit-text-stroke-color: rgba(243, 239, 230, .75); transform: translateY(-1.2vh); }
/* the five remembered: the painting inside follows the cursor, the numeral lifts */
.memoria_wrap .memoria_num.is-ours b { background-size: 120% auto; background-position: var(--bx, 50%) var(--by, 45%); }
.memoria_wrap .memoria_num.is-ours:hover b , .memoria_wrap .memoria_num.is-ours:focus-visible b , .memoria_wrap .memoria_num.is-peek b  { background-size: 160% auto; transform: translateY(-1.8vh); -webkit-text-stroke-color: var(--me-gold); }
.memoria_wrap .memoria_track:hover .memoria_num:not(:hover) b { opacity: .45; }
.memoria_wrap .memoria_num_cap { position: absolute; left: .6vh; top: calc(100% + 10px); display: grid; gap: 4px; white-space: nowrap; font-size: 12px; letter-spacing: .06em; color: var(--me-soft);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .6s var(--me-out); pointer-events: none; }
.memoria_wrap .memoria_num_mem { color: var(--me-gold); font-family: var(--me-display); font-size: 15px; letter-spacing: .04em; }
.memoria_wrap .memoria_num:hover .memoria_num_cap , .memoria_wrap .memoria_num:focus-visible .memoria_num_cap , .memoria_wrap .memoria_num.is-peek .memoria_num_cap  { opacity: 1; transform: none; }
.memoria_wrap .memoria_num.is-ours b { background-image: var(--fill); -webkit-text-stroke: 1px rgba(231, 201, 142, .6); filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .6)); }
.memoria_wrap .memoria_num_year { font-size: 12px; letter-spacing: .2em; color: var(--me-dim); padding-left: .6vh; }
.memoria_wrap .memoria_num.is-ours .memoria_num_year { color: var(--me-gold); }
.memoria_wrap .is-sixteen .memoria_small { position: absolute; right: var(--me-gutter); bottom: max(5vh, 30px); margin: 0; font-size: 12px; color: var(--me-dim); letter-spacing: .06em; }

/* a finger swipes sideways through the worlds and still scrolls on */
.memoria_wrap .memoria_part.is-worlds { touch-action: pan-y pinch-zoom; }

/* ---- VII. the staff roll: it rises through a soft window, clear of the Sound control ---- */
.memoria_wrap .memoria_part.is-staff { -webkit-mask-image: linear-gradient(transparent 0, #000 15vh, #000 88vh, transparent); mask-image: linear-gradient(transparent 0, #000 15vh, #000 88vh, transparent); }
.memoria_wrap .memoria_roll { position: absolute; left: 50%; top: 0; width: min(720px, calc(100vw - 2 * var(--me-gutter))); transform: translate3d(-50%, var(--ry, 100vh), 0); text-align: center; will-change: transform; }
.memoria_wrap .memoria_roll_title { margin: 0; font-family: var(--me-display); font-size: clamp(44px, 5vw, 84px); line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.memoria_wrap .memoria_roll_sub { margin: 14px 0 12vh; font-size: 12.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--me-gold); }
.memoria_wrap .memoria_roll_list { margin: 0; display: grid; gap: 6vh; }
.memoria_wrap .memoria_roll_list dt { margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--me-gold); }
.memoria_wrap .memoria_roll_list dd { margin: 0 0 4px; font-family: var(--me-serif); font-size: clamp(18px, 1.5vw, 23px); line-height: 1.4; color: var(--me-ink); }
.memoria_wrap .memoria_roll_end { margin: 16vh auto 0; max-width: 20ch; font-family: var(--me-display); font-size: clamp(30px, 3.4vw, 58px); line-height: 1.12; }
.memoria_wrap .memoria_roll_thanks { margin: 18vh 0 0; font-family: var(--me-serif); font-size: clamp(20px, 1.6vw, 26px); color: var(--me-soft); letter-spacing: .02em; }

/* ---- the Bestiary: Amano's monsters on a field you drag; Libra reads one ---- */
.memoria_wrap .memoria_field { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; cursor: grab; }
.memoria_wrap .memoria_field:active { cursor: grabbing; }
.memoria_wrap .memoria_beast { position: absolute; left: 0; top: 0; aspect-ratio: 3 / 4; padding: 0; border-radius: 2px; overflow: hidden; will-change: transform;
  background: #efe9dc; box-shadow: 0 0 0 1px rgba(243, 239, 230, .5), 0 30px 60px -24px rgba(0, 0, 0, .85); cursor: crosshair; transition: box-shadow .4s; }
.memoria_wrap .memoria_beast img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.memoria_wrap .memoria_beast_ink { filter: contrast(1.05); }
/* Libra: the scan passes down the card, the colour behind it */
.memoria_wrap .memoria_beast_col { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.5, 0, .2, 1); }
.memoria_wrap .memoria_beast.is-scanned .memoria_beast_col { clip-path: inset(0 0 0 0); }
.memoria_wrap .memoria_beast_scan { position: absolute; left: -10%; right: -10%; top: 0; height: 2px; background: #bfe0ff; box-shadow: 0 0 14px 4px rgba(150, 200, 255, .7); opacity: 0; }
.memoria_wrap .memoria_beast.is-scanned .memoria_beast_scan { animation: memoria-scan 1.1s cubic-bezier(.5, 0, .2, 1); }
@keyframes memoria-scan { 0% { opacity: 1; top: 0; } 92% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
.memoria_wrap .memoria_beast_name { position: absolute; left: 10px; bottom: 8px; font-family: var(--me-display); font-size: 14px; letter-spacing: .06em; color: #20253a; opacity: 0; transition: opacity .4s; }
.memoria_wrap .memoria_beast.is-scanned .memoria_beast_name { opacity: 1; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.memoria_wrap .memoria_beast:hover, .memoria_wrap .memoria_beast:focus-visible { box-shadow: 0 0 0 1.5px var(--me-gold), 0 40px 70px -24px rgba(0, 0, 0, .9); }
.memoria_wrap .memoria_best_head { position: absolute; z-index: 3; left: var(--me-gutter); top: 9vh; width: min(30vw, 440px); padding: 26px 28px 22px; border-radius: 4px; pointer-events: none;
  background: linear-gradient(160deg, rgba(5, 8, 24, .92), rgba(5, 8, 24, .78)); box-shadow: 0 0 0 1px var(--me-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.memoria_wrap .memoria_best_kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--me-gold); }
.memoria_wrap .memoria_best_kicker::before { content: ''; flex: none; width: 8px; height: 18px; clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%); background: linear-gradient(160deg, #fff 10%, var(--me-gold) 50%, #6b5428); }
.memoria_wrap .memoria_best_title { margin: 0; font-family: var(--me-display); font-weight: 400; font-size: clamp(44px, 4.6vw, 84px); line-height: 1; }
.memoria_wrap .memoria_best_head .memoria_fact { margin-bottom: 0; }
/* the Libra window: the games' own blue */
.memoria_wrap .memoria_libra { position: absolute; z-index: 3; right: var(--me-gutter); bottom: max(5vh, 30px); width: min(300px, 80vw); padding: 14px 20px 16px; border-radius: 9px; color: #f4f6fb; pointer-events: none;
  background: linear-gradient(180deg, rgba(46, 70, 168, .9), rgba(12, 18, 64, .94)); box-shadow: inset 0 0 0 1.5px rgba(236, 241, 255, .86), inset 0 0 0 3px rgba(10, 14, 40, .6), 0 24px 50px -20px rgba(0, 0, 0, .9); }
.memoria_wrap .memoria_libra_head { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #bfe0ff; }
.memoria_wrap .memoria_libra_head b { color: #f4f6fb; font-weight: 500; letter-spacing: .08em; }
.memoria_wrap .memoria_libra_name { margin: 0; font-family: var(--me-display); font-size: 26px; line-height: 1.1; }
.memoria_wrap .memoria_libra.is-cast .memoria_libra_name { animation: memoria-libra .7s steps(6) both; }
@keyframes memoria-libra { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.memoria_wrap .memoria_libra_meta { margin: 6px 0 0; font-size: 12.5px; color: rgba(244, 246, 251, .8); }
.memoria_wrap .memoria_libra_credit { margin: 2px 0 0; font-size: 11px; color: rgba(244, 246, 251, .6); }
.memoria_wrap .is-best-hint { position: absolute; z-index: 7; left: var(--me-gutter); bottom: max(5vh, 30px); padding: 6px 10px; border-radius: 4px; background: rgba(5, 8, 24, .86); pointer-events: none; }
@media (max-aspect-ratio: 19/20) {
  .memoria_wrap .memoria_best_head { left: var(--me-gutter); right: var(--me-gutter); top: 6vh; width: auto; padding: 18px 20px 16px; }
  .memoria_wrap .memoria_best_head .memoria_fact { font-size: 15px; }
  .memoria_wrap .memoria_libra { right: var(--me-gutter); left: var(--me-gutter); width: auto; bottom: max(3vh, 18px); }
  .memoria_wrap .is-best-hint { display: none; }
}

/* ---- the facets: a crystal closes over the screen between parts ---- */
.memoria_wrap .memoria_facets { position: absolute; inset: 0; z-index: 8; pointer-events: none; display: grid; grid-template-columns: repeat(var(--cols, 14), 1fr); grid-auto-rows: 1fr; visibility: hidden; }
.memoria_wrap .memoria_facets.is-on { visibility: visible; }
.memoria_wrap .memoria_facet { position: relative; transform: scale(calc(min(1, max(0, var(--w, 0) * 2.2 - var(--d, 0))) * 1.5)) rotate(45deg);
  background: linear-gradient(135deg, #0c1436, #050818 60%); box-shadow: inset 0 0 0 1px rgba(169, 198, 255, .22); }
.memoria_wrap .memoria_card { position: absolute; inset: 0; z-index: 9; display: grid; place-content: center; justify-items: center; gap: 10px; pointer-events: none; opacity: var(--c, 0);
  transform: scale(calc(1.06 - var(--c, 0) * .06)); }
.memoria_wrap .memoria_card_num { margin: 0; font-family: var(--me-display); font-size: 18px; letter-spacing: .3em; color: var(--me-gold); }
.memoria_wrap .memoria_card_name { max-width: calc(100vw - 2 * var(--me-gutter)); margin: 0; text-align: center; font-family: var(--me-display); font-size: clamp(30px, 5vw, 86px); line-height: 1; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 0 40px rgba(120, 150, 255, .35); }
.memoria_wrap .memoria_facet::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(169, 198, 255, .16) 50%, transparent 60%); background-size: 300% 300%; background-position: calc(100% - var(--w, 0) * 100%) 0; }
/* where you are */
.memoria_wrap .memoria_sound { position: absolute; z-index: 20; background: rgba(5, 8, 24, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); right: var(--me-gutter); top: calc(max(5vh, 34px) - 7px); display: flex; gap: 8px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--me-line);
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--me-dim); transition: color .3s, box-shadow .3s; }
.memoria_wrap .memoria_sound b { font-weight: 600; color: var(--me-ink); }
.memoria_wrap .memoria_sound:hover { color: var(--me-ink); box-shadow: inset 0 0 0 1px var(--me-gold); }
.memoria_wrap .memoria_rail { position: absolute; right: calc(var(--me-gutter) + 128px); top: calc(max(5vh, 34px) - 7px); z-index: 20; padding: 7px 14px; border-radius: 999px; background: rgba(5, 8, 24, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(243, 239, 230, .3); }
.memoria_wrap .memoria_rail li { transition: color .4s; }
.memoria_wrap .memoria_rail li.is-here { color: var(--me-ink); }
.memoria_wrap .memoria_stage.is-title .memoria_rail, .memoria_wrap .memoria_stage.is-staff .memoria_rail { opacity: 0; }
.memoria_wrap .memoria_rail { transition: opacity .6s; }
@media (max-width: 1279px) { .memoria_wrap .memoria_rail { display: none; } }

/* ---- portrait: phones and upright tablets ---- */
@media (max-aspect-ratio: 19/20) {
  .memoria_wrap .memoria_rail { display: none; }
  .memoria_wrap .memoria_name { font-size: min(20vw, 17vh); }
  .memoria_wrap .memoria_title_foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .memoria_wrap .memoria_lede { text-align: left; }
  .memoria_wrap .is-title-credit { left: var(--me-gutter); right: auto; top: calc(max(5vh, 34px) + 26px); }
    .memoria_wrap .memoria_left { left: var(--me-gutter); right: var(--me-gutter); top: 46vh; bottom: max(2.5vh, 16px); width: auto; }
  .memoria_wrap .is-worlds .memoria_hint { display: none; }
  .memoria_wrap .memoria_count { margin-bottom: 1.4vh; }
  .memoria_wrap .memoria_logo { max-width: min(64vw, 260px); max-height: 9vh; margin-bottom: 1.2vh; }
  .memoria_wrap .memoria_world_line { margin-bottom: 1.6vh; font-size: 16px; }
  .memoria_wrap .memoria_facts { gap: 5px 14px; margin-bottom: 1.8vh; padding-top: 1.4vh; font-size: 12.5px; }
  .memoria_wrap .memoria_facts > :nth-child(n+7) { display: none; }
  .memoria_wrap .memoria_relive { padding: 8px 16px; font-size: 12px; }
  .memoria_wrap .memoria_sat { display: none; }
  .memoria_wrap .is-hero-credit { transform: none; left: var(--me-gutter); right: var(--me-gutter); top: calc(8.5vh - 22px); text-align: left; max-width: none; }
  .memoria_wrap .memoria_sound { top: auto; bottom: auto; top: 12px; right: 12px; }
  .memoria_wrap .memoria_index { justify-content: space-between; }
  .memoria_wrap .memoria_index_btn { min-width: 0; padding-right: 10px; }
  .memoria_wrap .memoria_index_btn b { font-size: 20px; }
  .memoria_wrap .memoria_big { top: 8vh; font-size: min(10.4vw, 14vh); }
  .memoria_wrap .memoria_big_line + .memoria_big_line { margin-left: 4vw; }
  .memoria_wrap .is-sakaguchi .memoria_portrait { right: auto; left: 50%; top: 32vh; width: min(46vw, 30vh); transform: translateX(-50%); }
  .memoria_wrap .is-sakaguchi .memoria_maker_text, .memoria_wrap .memoria_amano_text, .memoria_wrap .memoria_uematsu_foot { left: var(--me-gutter); right: var(--me-gutter); width: auto; }
  .memoria_wrap .is-amano::after { background: linear-gradient(0deg, rgba(5, 8, 24, .92) 0, rgba(5, 8, 24, .6) 40%, transparent 70%); }
  .memoria_wrap .memoria_amano_photo { display: none; }
  .memoria_wrap .is-paint-credit { left: var(--me-gutter); right: var(--me-gutter); top: 58px; bottom: auto; text-align: left; }
  .memoria_wrap .memoria_staff { top: 36vh; height: 26vh; }
  .memoria_wrap .memoria_uematsu_head { top: 8vh; flex-direction: column; align-items: flex-start; gap: 14px; }
  .memoria_wrap .memoria_uematsu_head .memoria_portrait { width: 92px; }
  .memoria_wrap .memoria_track { top: 36vh; gap: 8vw; }
  .memoria_wrap .memoria_num b { font-size: 24vh; }
  .memoria_wrap .memoria_fact { font-size: 17px; }
}

/* keyboard: a gold ring on whatever has focus */
.memoria_wrap :focus-visible { outline: 2px solid #e7c98e; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .memoria_wrap *, .memoria_wrap *::before, .memoria_wrap *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
}
