/* THE TITLE (ui/title.js): its wordmark's column, its options (the sheet's chosen-line list), the version line and its notes. Read after glass.css, which sizes the wordmark with the cards (index.html). */

html[data-mode='title'] .title { display: flex; }
/* `safe`: where the column is taller than the window it starts at the top and scrolls, and the wordmark is never cut off. */
.title { flex-direction: column; justify-content: safe flex-end; align-items: flex-start; padding: 0 6vw 14vh; overflow-x: hidden; overflow-y: auto; cursor: pointer; }
.title .rule { align-self: stretch; height: 2px; margin: 1.4rem 0 1rem; background: linear-gradient(90deg, var(--ink), transparent); }
.title .tagline { font-size: var(--sub); letter-spacing: .5em; text-transform: uppercase; color: var(--ink-dim); }
/* THE OPTIONS (#338): the sheet's chosen-line list (sheet.css `.sheet-line`), one under another. The line the keyboard or the pointer is on is the chosen one: full ink, the lamp's rule at its left and the lamp's faint ground; the others are dim.
   The line's rows (SHEET.look) and the title's (TITLE.look) are custom properties of the title's screen, set by title.js. Nothing of the options pulses. The selectors name the button as well as the classes: they out-weigh the older title
   rules of ui2.css, which this look no longer wants. */
.title .options { display: grid; width: max-content; max-width: 100%; margin-top: 5vh; }
.title .options > button:is(.start, .continue, .reload, .credits) {
  display: flex; align-items: center; gap: var(--sheet-line-gap); box-sizing: border-box; min-height: var(--sheet-line-h); margin: 0; padding: 0 var(--sheet-line-pad);
  border: 0; border-left: var(--sheet-rule) solid transparent; border-radius: 0; background: none; opacity: 1;
  font: var(--weight-say) var(--size-say) / var(--sheet-read-lead) var(--font-text); letter-spacing: normal; text-transform: none; text-align: left; color: var(--ink-dim);
  transform-origin: left center;   /* the nudge pulses a line from where it starts */
  transition: color var(--warm), background var(--warm), border-color var(--warm);
}
.title .options > button:is(.start, .continue, .reload, .credits):hover:not(:disabled),
.title .options > button:is(.start, .continue, .reload, .credits):focus-visible:not(:disabled),
.title .options > button:is(.start, .continue, .reload, .credits):disabled {   /* a line clicked, while the world is made, stays the chosen one */
  border-left-color: var(--lamp); color: var(--ink); background: linear-gradient(90deg, var(--sheet-line-wash), transparent var(--sheet-line-wash-end));
}
.title .options > button:is(.start, .continue, .reload, .credits):disabled { cursor: progress; }
/* Whoever tabs here, or is sent here by a pad, sees which line is chosen: by the chosen look, and by an outline a keyboard can see. */
.title .options > button:is(.start, .continue, .reload, .credits):focus-visible { outline: var(--sheet-rule) solid var(--ink-dim); outline-offset: calc(-1 * var(--sheet-rule)); }
.title .options small { margin-left: auto; font-size: var(--size-label); font-weight: var(--weight-read); color: var(--ink-faint); }
.title .options small:empty { display: none; }
.title .build { margin-top: 1vh; font-size: .875rem; letter-spacing: .08em; color: var(--ink-faint); }

/* What the title has to say besides its name: each note a plate, its words in full ink and its level the rule at its left (the lamp's for one that needs an answer, the faint ink's for one that only tells), and under it,
   where there is one, the line of what the game reported. */
.title .notes { display: grid; justify-items: start; gap: var(--title-note-gap); max-width: var(--title-note-w); margin-top: 1.2rem; }
.title .notes:empty { display: none; }
.title-note {
  margin: 0; padding: var(--plate-y) var(--plate-x); border-left: var(--plate-rule) solid var(--ink-faint);
  background: linear-gradient(90deg, var(--dark-veil) calc(100% - var(--plate-feather)), transparent);
  font: var(--weight-read) var(--size-read) / var(--sheet-read-lead) var(--font-text); color: var(--ink); overflow-wrap: anywhere;
}
.title-note.answer, .title-note.nudge { border-left-color: var(--lamp); }
.title-note.detail { padding-top: 0; border-left-color: transparent; background: none; font-size: var(--size-label); color: var(--ink-dim); }
