/* THE CREDITS' SCREEN (ui/credits.js) AND THE WALL (ui/creditwall.js). Read after title.css (index.html). */

/* THE CREDITS' LOOK (the credits' own list where the wall cannot be drawn): a screen with a veil that keeps the words readable. A bar with Back, then a list that scrolls, grouped by kind. Nothing smaller than the page's body size: a credit is to be read. */
.credits-screen { flex-direction: column; background: linear-gradient(rgb(4 5 7 / .74), rgb(4 5 7 / .86)); padding: 3.5vh 6vw 0; cursor: auto; }
.credits-bar { display: flex; align-items: center; gap: 1.6rem; flex: none; padding-bottom: 2vh; border-bottom: 1px solid var(--ink-faint); }
.credits-bar .back { font-size: 1rem; padding: .6em 1.6em; letter-spacing: .3em; }
.credits-bar .back:focus-visible { outline: 2px solid var(--ink); outline-offset: .3rem; }
.credits-title { margin: 0; font-size: 1.25rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; }
.credits-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 3vh 1.2rem 12vh 0; max-width: 54rem; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-dim); scrollbar-color: var(--ink-faint) transparent; }
.credits-list:focus-visible { outline: 2px solid var(--ink-faint); outline-offset: .3rem; }
.credits-list h1 { margin: 0 0 .4rem; font: 900 var(--head) / .95 var(--font-display); font-stretch: condensed; letter-spacing: .02em; color: var(--ink); }
.credits-list h2 { margin: 3.2rem 0 .8rem; font-size: 1.25rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.credits-list h3 { margin: 1.8rem 0 .5rem; font-size: 1.0625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.credits-list p, .credits-list ul, .credits-list blockquote { margin: .7rem 0; }
.credits-list .maker { font-size: 1.375rem; color: var(--ink); margin: 1rem 0 .2rem; }
.credits-list .copyright, .credits-list .tools { margin: .2rem 0; }
.credits-list .build { margin: .2rem 0 1rem; letter-spacing: .08em; }
.credits-list ul { padding-left: 1.4rem; }
.credits-list li { margin: .5rem 0; }
.credits-list blockquote { margin-left: 0; padding-left: 1rem; border-left: 2px solid var(--ink-faint); }
.credits-list strong { color: var(--ink); font-weight: 600; }
.credits-list a { color: var(--ink); text-underline-offset: .2em; overflow-wrap: anywhere; }
.credits-list a:hover, .credits-list a:focus-visible { background: var(--ink); color: var(--black); outline: none; }
.credits-list code { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.credits-list .says { color: var(--ink); }
.credits-list .notice { margin: 1.2rem 0; border: 1px solid var(--ink-faint); }
.credits-list .notice summary { cursor: pointer; padding: .8rem 1rem; color: var(--ink); overflow-wrap: anywhere; }
.credits-list .notice summary:hover, .credits-list .notice summary:focus-visible { background: var(--ink); color: var(--black); outline: none; }
.credits-list .notice pre { margin: 0; padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 1.0625rem; line-height: 1.5; border-top: 1px solid var(--ink-faint); }

/* THE CREDITS (ui/credits.js; render/creditwall.js draws the wall, ui/creditwall.js says what is on it): a screen of nothing over the title while its hall is dark and then lit, which is the wall with the credits sprayed
   on it; this is the scroller over it (the wall goes by under the window as it is scrolled: the screen's own scroll is the wall's) and the buttons laid over its signs. Opened by html[data-credits], from the title only.
   The title's letters stay, solid, over the wall (its own ink: the sign in front of it) and go up with it as it is scrolled; the menu under them is put away while it is up. The screen's list (the same words, in the page,
   for a screen reader) stands off the side of the page; a sign is the same element as its place in that list, brought up close by data-open. Nothing smaller than the page's body size: a credit is to be read. */
html[data-mode='title'][data-credits] .title > :not(h1) { visibility: hidden; pointer-events: none; }
html[data-mode='title'][data-credits] .title h1 { transform: translateY(calc(-1 * var(--wall-scroll, 0px))); text-shadow: 0 .03em .1em var(--black); }   /* (a sign in front of the wall: it throws a shadow on it) */
html[data-mode='title'][data-credits] .creditwall-screen { display: block; }
/* Where the title's column is taller than the window (a phone on its side) its letters stand at the top of it, where the Back button is: the credits give the column room at its top, so that the letters
   stand under the button and do not meet it: as much as the letters' box begins above the button's foot, measured as the wall is laid out (ui/credits.js clearBack writes --credits-bar-room on the column). Where the
   column is shorter than the window the letters stand lower already and the room is none. (It was a guess of 1.2rem, which the sweep's still at a phone showed too little: #390.) */
html[data-mode='title'][data-credits] .title { padding-top: var(--credits-bar-room, 0); }
/* The title's own words (the options, the version, the notes) stay put away while the wall is lit, also after Back while the lights are cut (ui/credits.js holds html[data-wall-lit] until the scene gives the letters their
   windows back, html[data-titlewin]): by their strength alone, over warm and warm-out. The letters themselves are never put away. */
html[data-mode='title'] .title > :not(h1) { transition: opacity var(--warm); }
html[data-mode='title'][data-wall-lit]:not([data-titlewin]) .title > :not(h1) { opacity: 0; pointer-events: none; transition: opacity var(--warm-out); }
.creditwall-screen { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; cursor: auto; scrollbar-width: thin; scrollbar-color: var(--ink-faint) transparent; }
.creditwall-bar { position: sticky; top: 0; z-index: 3; height: 0; }   /* (no height: the wall begins at the top of the scroller, where its places are measured from) */
.creditwall-bar::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6rem; background: linear-gradient(rgb(0 0 0 / .78), rgb(0 0 0 / 0)); pointer-events: none; }
.creditwall-bar .back { position: absolute; left: 3rem; top: 1.6rem; font-size: 1rem; padding: .6em 1.6em; letter-spacing: .3em; background: rgb(0 0 0 / .6); }
.creditwall-bar .back:hover:not(:disabled), .creditwall-bar .back:focus-visible:not(:disabled) { background: var(--ink); }
.creditwall-bar .back:focus-visible { outline: 2px solid var(--ink); outline-offset: .3rem; }
.creditwall-title { position: absolute; left: 12rem; top: 2.1rem; margin: 0; font-size: 1.25rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; }
.creditwall-wall { position: relative; min-height: 100%; }
/* A sign's place on the wall: a button over it that is seen only when it is chosen. */
.creditwall-spots { position: absolute; inset: 0; pointer-events: none; }
.sign-spot { position: absolute; padding: 0; margin: 0; border: 0; border-radius: .4rem; background: transparent; pointer-events: auto; cursor: pointer; }
.sign-spot:hover:not(:disabled), .sign-spot:focus-visible:not(:disabled) { background: rgb(255 255 255 / .12); outline: 3px solid var(--ink); outline-offset: .25rem; }
.creditwall-shade { position: fixed; inset: 0; z-index: 4; background: rgb(0 0 0 / .78); cursor: pointer; }
/* The list, for whoever reads the page by ear: off the side of it, still words in the page. */
.creditwall-wall .credits-list { position: absolute; left: -10000px; top: 0; width: min(46rem, 90vw); flex: none; overflow: visible; padding: 0; max-width: none; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-dim); }
/* A sign. Its look (the board, the ink, the edge, the stamp) is its own custom properties, from data/creditwall.js looks. */
.sign { box-sizing: border-box; padding: 1.2rem 2rem 1.6rem; background: var(--board); color: var(--ink-sign); border: .3rem solid var(--edge); border-radius: .5rem; font-size: 1.0625rem; line-height: 1.55; }
.sign:focus-visible { outline: 3px solid var(--ink); outline-offset: .3rem; }
.sign[data-open] { position: fixed; z-index: 5; left: 50%; top: 50%; width: min(54rem, 92vw); max-height: 88vh; overflow-y: auto; transform: translate(-50%, -50%); box-shadow: 0 1rem 4rem rgb(0 0 0 / .8); overscroll-behavior: contain; }
.sign-head, .sign-foot { display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.sign-foot { margin-top: 1.2rem; }
.sign-foot .stamp { color: var(--stamp, currentColor); border: .15rem solid var(--stamp, currentColor); padding: 0 .5rem; transform: rotate(-5deg); font-weight: 700; }
.sign h3, .sign strong, .sign code { color: inherit; }
.sign h3 { margin: .8rem 0 .6rem; font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; }
.sign p, .sign ul, .sign blockquote { margin: .7rem 0; }
.sign ul { padding-left: 1.4rem; }
.sign li { margin: .5rem 0; }
.sign blockquote { margin-left: 0; padding-left: 1rem; border-left: .2rem solid currentColor; }
.sign a { color: inherit; text-underline-offset: .2em; overflow-wrap: anywhere; }
.sign a:hover, .sign a:focus-visible { background: var(--ink-sign); color: var(--board); outline: none; }
.sign code { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; overflow-wrap: anywhere; }
.sign pre { margin: .6rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 1.0625rem; line-height: 1.5; }
.sign .sign-path { font-size: 1rem; letter-spacing: .04em; opacity: .85; overflow-wrap: anywhere; }
.sign-back { display: none; margin-top: 1.2rem; font-size: 1rem; padding: .6em 1.6em; letter-spacing: .3em; color: var(--ink-sign); background: transparent; border-color: currentColor; }
.sign-back:hover:not(:disabled), .sign-back:focus-visible:not(:disabled) { background: var(--ink-sign); color: var(--board); outline: none; }
.sign[data-open] .sign-back { display: inline-block; }
/* The list of the screen where the wall cannot be drawn: the same words, in the page, over a veil. */
.creditwall-screen[data-plain] { background: linear-gradient(rgb(4 5 7 / .74), rgb(4 5 7 / .86)); padding: 0 6vw; }
.creditwall-screen[data-plain] .creditwall-bar { position: static; height: auto; display: flex; align-items: center; gap: 1.6rem; padding: 3.5vh 0 2vh; border-bottom: 1px solid var(--ink-faint); }
.creditwall-screen[data-plain] .creditwall-bar::before { display: none; }
.creditwall-screen[data-plain] .creditwall-bar .back, .creditwall-screen[data-plain] .creditwall-title { position: static; }
.creditwall-screen[data-plain] .credits-list { position: static; width: auto; max-width: 54rem; padding: 3vh 0 12vh; }
.creditwall-screen[data-plain] .creditwall-spots { display: none; }
.credits-list .credits-game { margin: 0 0 .4rem; font: 900 var(--head) / .95 var(--font-display); font-stretch: condensed; letter-spacing: .02em; text-transform: none; color: var(--ink); }
.credits-list .names { margin: .7rem 0; padding-left: 1.4rem; color: var(--ink); }
.creditwall-screen[data-plain] .sign { margin: 1.4rem 0; }
.creditwall-screen[data-plain] .sign-foot { display: flex; }
