/* The notice the player is shown when the game caught a fault (ui/fault.js): a small card at the top centre of the frame for the rare thing
   that needs an answer and is not a sheet (design-313 00-head.html `.notice`, #328). The dark is the sheet's own strength, the one rule is the
   lamp's (look here: red is the body's alone), the sizes, weights, inks and faces are the HUD's tokens, and what the card measures (its width, its
   padding, its gaps, its lines) are the rows of FAULTS.text.look (data/faults.js), which fault.js sets on the card as --fault-*. Nothing here is a
   length, a colour or a time of its own (tests/fault.card.test.mjs holds it so). */
.fault {
  position: fixed; z-index: var(--fault-layer); top: var(--edge); left: 50%; transform: translateX(-50%);
  display: grid; gap: var(--fault-gap);
  width: var(--fault-width); max-width: calc(100% - 2 * var(--gutter));
  padding: var(--fault-pad-top) var(--fault-pad-x) var(--fault-pad-bottom);
  background: var(--dark-sheet); border-left: var(--plate-rule) solid var(--lamp);
  color: var(--ink);
  pointer-events: auto;
}
.fault p { margin: 0; overflow-wrap: anywhere; }
.fault h2 {
  margin: 0; font-family: var(--font-display); font-size: var(--size-figure); font-weight: var(--weight-label); font-stretch: condensed;
  line-height: var(--fault-head-line); letter-spacing: var(--fault-head-track); text-transform: uppercase;
}
.fault .says { font-size: var(--size-say); font-weight: var(--weight-say); line-height: var(--fault-say-line); }
.fault .saved { font-size: var(--size-read); font-weight: var(--weight-read); line-height: var(--fault-read-line); color: var(--ink-dim); }
.fault .saved:empty { display: none; }
.fault .report { font-size: var(--size-label); font-weight: var(--weight-read); color: var(--ink-dim); }
.fault .actions { display: flex; flex-wrap: wrap; gap: var(--fault-actions-gap); }
/* The chosen answer: the lamp's edge and the lamp's foot (design-313 `.btn.go`). The plain one is the page's own button. */
.fault .carry { border-color: var(--lamp); box-shadow: inset var(--plate-rule) 0 0 var(--lamp); }
/* The answer in focus: the page's own look of a button in focus (ui/style/base.css), on `:focus` and not only `:focus-visible`. A pad in play gives the card its focus by script (core/gamepad.js `settleCard`), and whether that
   focus is drawn is the browser's to say: after a real click on the picture Chrome withholds it, and in play there is no reticle to fall back on. A mouse's own press on a button here ends the card or the page, so nothing is left marked. */
.fault button:focus:not(:disabled) { background-color: var(--ink); color: var(--black); outline: none; }
