/* genesis.css: what is specific to the Room A GENESIS page, in the tokens of ../../ad/roomc.css (Room C's art direction; that file is
   linked first). Black ground, white at the steps of the alpha stair, one sans and one mono, sizes and lines in --u. No colour of its own.

   The one colour on the page is the picture inside #gl: the Inferno look is the work's own image (the colour of an individual is its
   age), drawn by the renderer from the data, not the page's. It stays outside the site's black and white by design; the notes say so.

   The head, the language switch and the footer are the shared ones (.rc-head, .language-switch, .rc-foot); the notes are .rc-section and
   .rc-kv. Here: the one-line masthead, the stage (the wall band and the control bar, which sticks to the top of the window while the information scrolls), the
   information tabs under it, and the still mode. */

/* ---- the masthead: one line, the tool bar of roomc.css (.rc-bar, 56 u), so that the picture is in view from the first moment ---- */
/* project line + page name (the h1, small) at the left, ← ROOM A and the language switch at the right. Under 1000 px the name goes under the project
   line; under 720 px the project line is its short form. The big title, the kicker and the lead sentence open the ABOUT tab. */
.rc-bar { flex-wrap: nowrap; height: calc(56 * var(--u)); min-height: 0; }
.mast-id { display: flex; align-items: baseline; gap: calc(24 * var(--u)); min-width: 0; }
.mast-name { margin: 0; color: var(--rc-fg-foot); font-size: var(--rc-fs-label); font-weight: 300; letter-spacing: var(--rc-ls-sub); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.rc-project { white-space: nowrap; }
.rc-project .short { display: none; }
.rc-bar .rc-nav { flex: none; flex-wrap: nowrap; margin-left: auto; white-space: nowrap; }

/* ---- the stage: the wall band and the control bar, stuck to the top of the window once the masthead has scrolled away ---- */
/* stage.js keeps its height within 65 % of the window: the whole bar if it fits, else the compact bar + the VIEW panel (#stage.compact), and
   a narrower band (--band-maxw) in a short window. The page's scroll is the information's. */
html { scroll-padding-top: var(--stage-h, 0px); }   /* an anchor lands under the stage, not behind it */
#vh-probe { position: fixed; left: 0; top: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }   /* 100svh, read by stage.js */
#stage { position: sticky; top: 0; z-index: 30; background: var(--rc-bg); border-bottom: var(--rc-w) solid var(--rc-aux); }   /* the masthead's own rule is the stage's top */

/* the picture in the wall's own 2824 x 908 shape; 2824px is the wall's pixel width, the largest it is drawn (data, not a layout size) */
#band { position: relative; width: 100%; max-width: min(2824px, var(--band-maxw, 2824px)); margin: 0 auto; aspect-ratio: 2824 / 908; background: var(--rc-bg); overflow: hidden; touch-action: pan-y; }
#band.free { touch-action: none; cursor: grab; }
#band.free:active { cursor: grabbing; }
#band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#overlay { pointer-events: none; }

#big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: calc(88 * var(--u)); height: calc(88 * var(--u)); padding: 0; border: var(--rc-w) solid var(--rc-line); border-radius: 50%; background: var(--rc-backing); color: var(--rc-fg); }
#big-play svg { width: calc(34 * var(--u)); height: calc(34 * var(--u)); margin-left: calc(3 * var(--u)); }
#big-play:hover, #big-play:focus-visible { border-color: var(--rc-fg-now); color: var(--rc-fg-now); }
#big-play:focus-visible { outline-offset: calc(-6 * var(--u)); }
#status { position: absolute; left: calc(12 * var(--u)); right: calc(12 * var(--u)); bottom: calc(8 * var(--u)); color: var(--rc-fg-foot); font-family: var(--rc-mono); font-size: var(--rc-fs-credit); line-height: 1.3; pointer-events: none; }

/* ---- the control bar ---- */
#controls { padding: calc(10 * var(--u)) var(--rc-margin) calc(12 * var(--u)); border-top: var(--rc-w) solid var(--rc-aux); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: calc(12 * var(--u)); }
.transport { flex-wrap: nowrap; }
.transport .rc-btn { white-space: nowrap; flex-shrink: 0; }
#btn-play { min-width: calc(96 * var(--u)); }
#btn-view { display: none; }
#timeline { flex: 1 1 calc(120 * var(--u)); display: block; height: calc(48 * var(--u)); min-width: calc(80 * var(--u)); cursor: pointer; touch-action: none; }
#readout { min-width: 15em; color: var(--rc-fg); font-size: var(--rc-fs-label); letter-spacing: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stage-lang { flex: none; margin-left: calc(4 * var(--u)); white-space: nowrap; }
.options { margin-top: calc(10 * var(--u)); gap: calc(8 * var(--u)) calc(24 * var(--u)); }
.group { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); }
.rc-btn[aria-expanded="true"] { border: var(--rc-w2) solid var(--rc-fg-now); color: var(--rc-fg-now); font-weight: 500; padding: 0 calc(17 * var(--u)); }   /* the open VIEW button: the shared current look */

/* the compact bar (a window too short for the whole bar): the options leave the bar for the VIEW button's panel, which opens over the content under the stage */
#stage.compact #btn-view { display: inline-flex; }
#stage.compact #controls { padding: calc(8 * var(--u)) var(--rc-margin); }
#stage.compact #timeline { height: calc(40 * var(--u)); }
#stage.compact #options { display: none; }
#stage.compact.view-open #options { display: flex; position: absolute; left: 0; right: 0; top: 100%; margin: var(--rc-w) 0 0; padding: calc(16 * var(--u)) var(--rc-margin) calc(20 * var(--u)); max-height: calc(100vh - 100%); max-height: calc(100svh - 100%); overflow-y: auto; background: var(--rc-bg); border-bottom: var(--rc-w) solid var(--rc-line); }

/* a segmented choice: the buttons are .rc-btn, joined; the chosen one is brighter and thicker (the shared rule), never filled */
.seg { display: inline-flex; }
.seg .rc-btn { min-height: calc(32 * var(--u)); padding: 0 calc(12 * var(--u)); margin-left: calc(-1 * var(--rc-w)); border-radius: 0; }
.seg .rc-btn:first-child { margin-left: 0; border-radius: var(--rc-radius) 0 0 var(--rc-radius); }
.seg .rc-btn:last-child { border-radius: 0 var(--rc-radius) var(--rc-radius) 0; }
.seg .rc-btn:only-child { border-radius: var(--rc-radius); }
.seg .rc-btn[aria-pressed="true"] { position: relative; z-index: 1; padding: 0 calc(11 * var(--u)); }   /* the 2 u border takes the 1 u of padding: the group does not change its width */
#btn-whole { display: none; min-height: calc(32 * var(--u)); padding: 0 calc(12 * var(--u)); }
body.free #btn-whole { display: inline-flex; }

/* the film strength: a hairline and a white dot, no native look */
input[type="range"] { -webkit-appearance: none; appearance: none; width: calc(120 * var(--u)); height: calc(20 * var(--u)); margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: var(--rc-w); background: var(--rc-line); border: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: calc(11 * var(--u)); height: calc(11 * var(--u)); margin-top: calc(-5 * var(--u)); border: 0; border-radius: 50%; background: var(--rc-fg-now); }
input[type="range"]::-moz-range-track { height: var(--rc-w); background: var(--rc-line); border: 0; }
input[type="range"]::-moz-range-thumb { width: calc(11 * var(--u)); height: calc(11 * var(--u)); border: 0; border-radius: 50%; background: var(--rc-fg-now); }
output { min-width: 2.6em; color: var(--rc-fg-head); font-size: var(--rc-fs-label); }

.noscript { margin: calc(12 * var(--u)) 0 0; }

/* ---- the information tabs under the stage: the current one is brighter and thicker like a chosen .rc-btn, never filled ---- */
.tablist { display: flex; flex-wrap: wrap; gap: calc(8 * var(--u)); margin: calc(28 * var(--u)) var(--rc-margin) 0; }
.tablist .rc-btn { min-height: calc(36 * var(--u)); padding: 0 calc(16 * var(--u)); }
.tablist .rc-btn[aria-selected="true"] { border: var(--rc-w2) solid var(--rc-fg-now); color: var(--rc-fg-now); font-weight: 500; padding: 0 calc(15 * var(--u)); }
.tabpanel .rc-section { padding: calc(40 * var(--u)) 0 calc(48 * var(--u)); }
.tabpanel { margin-top: calc(28 * var(--u)); }
.council-panel { border-top: var(--rc-w) solid var(--rc-aux); border-bottom: var(--rc-w) solid var(--rc-aux); }
#panel { display: block; max-width: 100%; margin: 0 auto; background: var(--rc-bg); }

/* ---- the top of the ABOUT tab: the big title, the kicker (the skill's header, as in .rc-head) and the lead sentence ---- */
.about-head { margin: 0 var(--rc-margin); }
.about-head .rc-title { margin: 0; }
.about-head::after { content: ""; display: block; width: min(var(--rc-rule-len), 100%); height: var(--rc-w); margin-top: calc(16.86 * var(--u)); background: var(--rc-line); }
.intro-lead { margin: calc(28 * var(--u)) var(--rc-margin) calc(36 * var(--u)); }

/* ---- the notes ---- */
.rc-title, .intro-lead, .rc-prose, .rc-kv dd { word-break: auto-phrase; }   /* Japanese breaks between phrases where the browser can */
.rc-section-label > h2 { color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-transform: uppercase; }
.rc-section-body .rc-kv { max-width: calc(860 * var(--u)); }
.facts { max-width: var(--rc-measure); margin-top: calc(24 * var(--u)); color: var(--rc-fg-head); font-family: var(--rc-mono); font-size: var(--rc-fs-label); font-weight: 400; letter-spacing: 0; line-height: 1.8; }
html[lang="ja"] .facts { font-family: var(--rc-mono-ja); }
.noscript { margin: calc(12 * var(--u)) 0 0; }

/* ---- a still (?still=<seconds>): the band alone, for the checks against the production frame ---- */
body.still .chrome, body.still #controls, body.still #big-play, body.still #status { display: none; }
body.still #stage { position: static; border: 0; }
body.still #band { max-width: none; }

@media (max-width: 1000px) {
  .mast-id { flex-direction: column; align-items: flex-start; gap: calc(4 * var(--u)); }
}
@media (max-width: 720px) {
  .rc-project .long { display: none; }
  .rc-project .short { display: inline; }
  .mast-name { font-size: var(--rc-fs-mono); }
}
@media (max-width: 700px) {
  .intro-lead { margin-top: calc(22 * var(--u)); }
  .transport { flex-wrap: wrap; gap: calc(8 * var(--u)); }
  #btn-play { min-width: 0; padding: 0 calc(12 * var(--u)); }
  #btn-view { padding: 0 calc(12 * var(--u)); }
  .rc-btn[aria-expanded="true"] { padding: 0 calc(11 * var(--u)); }
  .ro-more { display: none; }              /* the time alone: 00:00.00 */
  #readout { min-width: 0; }
  .options { gap: calc(10 * var(--u)) calc(18 * var(--u)); }
  .group { flex-wrap: wrap; row-gap: calc(8 * var(--u)); }
  #big-play { width: calc(60 * var(--u)); height: calc(60 * var(--u)); }
  #big-play svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); margin-left: calc(2 * var(--u)); }
  .tablist { gap: calc(6 * var(--u)); }
  .tablist .rc-btn { padding: 0 calc(12 * var(--u)); }
  .tablist .rc-btn[aria-selected="true"] { padding: 0 calc(11 * var(--u)); }
}

/* Keep the project name and the navigation apart on narrow phones. */
@media (max-width: 420px) {
  #big-play { top: 40%; width: calc(44 * var(--u)); height: calc(44 * var(--u)); }   /* the band is about 120 px high here: keep the button above the overlay's lines */
  #big-play svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
  .rc-bar { flex-wrap: wrap; height: auto; padding-top: calc(12 * var(--u)); padding-bottom: calc(12 * var(--u)); row-gap: calc(12 * var(--u)); }
  .mast-id { flex-basis: 100%; }
  .rc-bar .rc-nav { width: 100%; margin-left: 0; justify-content: space-between; }
}
