/* The phone page's style, moved out of web/rhythm.html unchanged (issue 221).
   SPDX-License-Identifier: MIT */
/* biome-ignore-all lint/style/noDescendingSpecificity: the rules' order is the page's look; moving one changes which rule wins, a look for Kenny to rule (issue 221) */
/* JetBrains Mono ExtraBold, design/fonts/' cut as a .woff2 (OFL: fonts/OFL.txt). One weight. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/JetBrainsMono-ExtraBold.woff2") format("woff2");
}
/* design/DESIGN.md's tokens. */
:root {
  color-scheme: dark;
  --ground: #14131f;
  --tile: #2b2942;
  --display: #0b0a12;
  --table: #07060c;
  --ecru: #f2e8d0;
  --white: #ffffff;
  --ochre: #f0b429;
  --madder: #f0654a;
  --sky: #8faaf7;
  --lilac: #c9c2dd;
  --thread: #6e6a92;
  --fern: #6fd6a0; /* the effects (D112 item 3; a proposed value ⚠) */
  --frame: 7px; /* the playhead band: about an eighth of an 88 px key */
}
* {
  box-sizing: border-box;
}
html {
  background: var(--table);
}
body {
  margin: 0;
  background: var(--table);
  color: var(--ecru);
  font:
    800 18px / 1.3 "JetBrains Mono",
    ui-monospace,
    monospace;
}
button {
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

/* The instrument fills the screen, and nothing is under it: what was is in the menu (D155
     item 3, D157 items 1 and 5). The page scrolls only where a window is under 560 px tall.
     D139 item 7: the edge is 8 px a side (table 2, hem 2, padding 4; 16 until then: 6, 2 and 8). */
.table {
  position: relative;
  width: min(100vw, 430px);
  margin: 0 auto;
  height: 100svh;
  min-height: 560px;
  padding: 2px;
  padding-top: max(2px, env(safe-area-inset-top));
  padding-bottom: max(2px, env(safe-area-inset-bottom));
}
.body {
  height: 100%;
  padding: 4px;
  background: var(--ground);
  border: 2px dashed var(--thread);
  display: flex;
  flex-direction: column;
  gap: 12px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* The display: the weave over the step marks; the readouts. The weave is a canvas the size
     of the core's cells (78 by 16 since ABI 18), painted only when they or the glide change. */
.display {
  position: relative;
  height: 124px;
  flex: none;
  background: var(--display);
  border: 2px solid var(--ecru);
  padding: 8px 10px;
  display: flex;
  gap: 12px;
}
/* D155 item 3, D157 item 1 (issue 178; the board "the phone's menu", option A): one `menu`
     target, 48 by 48 px, in the display's top right corner, in place of D119 item 6's ? and D145's
     Share. Its word 16 px. ⚠ Tried on no phone. */
.menumark {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: var(--tile);
  color: var(--ecru);
  font-size: 16px;
}
.menumark[aria-expanded="true"] {
  background: var(--ecru);
  color: var(--ground);
}
.display .left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.weave {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  color: var(--lilac);
  font-size: 16px;
}
.weave canvas {
  display: block;
}
.weave canvas[hidden] {
  display: none;
}
.marks,
.lane {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 4px;
  height: 16px;
  flex: none;
}
/* D81 item 2: the lane (the view's bytes 56 and 57), a small tick above the mark of each
     step that holds an effect, on one line clear of the tallest mark. ⚠ A stand-in. Fern
     since D112 item 3 (was madder). */
.lane {
  height: 4px;
  margin-bottom: -4px;
}
.lane span.on {
  background: var(--fern);
}
/* ENGINE.md §21, "The display": which pattern plays, the chain's place while a chain of more
     than one runs, and the pattern waiting. ⚠ A stand-in until Kenny rules a look on the canvas
     (CONTRIBUTING, "A look"): the words are WORKFLOW.md's (`pattern 3`, `2/4`, `→ 5`). */
.patline {
  flex: none;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.marks span {
  height: 6px;
  background: var(--thread);
  align-self: end;
}
.marks span.q {
  height: 10px;
}
.marks span.now {
  height: 16px;
  background: var(--ochre);
}
/* The column under the menu: the tempo, 34 px (42 until D157 item 1), and the step under it,
     as the board draws them. ⚠ The board draws no fx or write block, and under the menu they no
     longer fit: they sit beside it, fx above write, each 62 px wide (64 until then). The build's
     reading, for Kenny (issue 207 asks it). */
.display .right {
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.flags {
  align-self: flex-start;
  height: 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tempo {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.tempo b {
  font-size: 34px;
  line-height: 0.9;
}
.tempo span,
.stepno,
.write,
.fxmark {
  font-size: 16px;
}
.tempo span {
  color: var(--lilac);
}
.write,
.fxmark {
  background: var(--ochre);
  color: var(--ground);
  padding: 0 7px;
  line-height: 1.2;
  width: calc(5ch + 14px);
  text-align: center;
}
/* D81 item 1: while an effect is heard (the view's byte 55), a block like the write mark,
     fx and its number, just above the write mark's place. ⚠ A stand-in. Fern since D112
     item 3 (was madder). */
.fxmark {
  background: var(--fern);
}
.write[hidden],
.fxmark[hidden] {
  display: block;
  visibility: hidden;
}

/* Grid keys: square (a column's width) while the screen is tall enough, shorter when it is
     not, never under 60 px. Not aspect-ratio: with a max-height it narrows the key instead.
     22 px is the edge and the three gaps across (38 until D139); 374 px what is not keys down
     the screen (390). 92 px at 390 by 844 (88 until D139). */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  flex: none;
}
.k {
  height: clamp(60px, min((min(100vw, 430px) - 22px) / 4, (100svh - 374px) / 4), 200px);
  position: relative;
  isolation: isolate;
  --face: var(--tile);
  background: var(--face);
  color: var(--ecru);
  font-size: 30px;
  touch-action: none;
}
/* A key's lights, from the outside in (design/DESIGN.md; D112, D115; ENGINE.md §14 and
     §17, designed 2026-11-26, D120): frame, twill, field, core, stitch, bar, source mark.
     Each means the same with write on or off. ⚠ Sizes read off a board nobody saw rendered. */
.k .n {
  position: relative;
  z-index: 4;
}
.k.on {
  --face: var(--ecru);
}
.k.on .n,
.k.core .n,
.k.press .n {
  color: var(--ground);
}
/* frame: the playhead, ochre, an eighth of the key; a dark line between it and a lit field. */
.k.play {
  box-shadow: inset 0 0 0 var(--frame) var(--ochre);
}
.k.on.play {
  box-shadow:
    inset 0 0 0 var(--frame) var(--ochre),
    inset 0 0 0 calc(var(--frame) + 5px) var(--ground);
}
/* twill: effect n heard. A band inside the frame, as wide again, hatched fern and ground,
     so it reads the same on a lit key and a dark one. */
.k .tw {
  display: none;
  position: absolute;
  inset: var(--frame);
  z-index: 1;
  background: repeating-linear-gradient(135deg, var(--fern) 0 4px, var(--ground) 4px 8px);
}
.k .tw::after {
  content: "";
  position: absolute;
  inset: var(--frame);
  background: var(--face);
}
.k.twill .tw {
  display: block;
}
/* core: sound n sounding. Two fifths of the key in the middle, a dark line round it; white,
     fern while the sound goes through the effect being heard. A firing never whitens the face. */
.k .co {
  display: none;
  position: absolute;
  left: 30%;
  top: 30%;
  width: 40%;
  height: 40%;
  z-index: 3;
  background: var(--white);
  border: 3px solid var(--ground);
}
.k.core .co {
  display: block;
}
.k.fern .co {
  background: var(--fern);
}
/* The stitch: another sound has a step here. Ecru on dark, dark on ecru. Inside the frame. */
.k.ghost::after {
  content: "";
  position: absolute;
  top: calc(var(--frame) + 2px);
  right: calc(var(--frame) + 2px);
  width: 11px;
  height: 11px;
  background: var(--ecru);
  z-index: 2;
}
.k.on.ghost::after,
.k.press.ghost::after {
  background: var(--ground);
}
/* The bar: the chosen sound (or pattern), in the held key's colour, inside the frame. */
.k.bar::before {
  content: "";
  position: absolute;
  left: var(--frame);
  right: var(--frame);
  bottom: var(--frame);
  height: 8px;
  background: var(--madder);
  z-index: 2;
}
.k.bar.ochre::before {
  background: var(--ochre);
}
/* source mark (D112 item 4): while sound or fx is held or latched, top left inside the
     frame. The page sends no ROUTE, so only the dash (a sample) can show. */
.k .mk {
  display: none;
  position: absolute;
  left: calc(var(--frame) + 2px);
  top: calc(var(--frame) + 5px);
  width: 15px;
  height: 4px;
  background: var(--ecru);
  z-index: 3;
}
.k.on .mk,
.k.press .mk {
  background: var(--ground);
}
.k.dash .mk {
  display: block;
}
/* Pressed: white, pulled in by the frame. A finger, and nothing else. */
.k.press {
  --face: var(--white);
  box-shadow: inset 0 0 0 var(--frame) var(--ground);
}

/* The bottom block: both sliders on the left, the function keys on the right. */
.bottom {
  flex: 1;
  min-height: 204px;
  display: flex;
  gap: 10px;
}
/* D139 item 7: a slider's column 48 px and its cap 48 by 44 (44, and 44 by 26, until then);
     the slot across the cap keeps its share, as in Rack (⚠ the build's reading). */
.sliders {
  width: 104px;
  display: flex;
  justify-content: space-between;
}
.sl {
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  touch-action: none;
}
.sl .tr {
  position: relative;
  flex: 1;
  width: 6px;
  background: var(--ecru);
}
.sl .cap {
  position: absolute;
  left: -21px;
  width: 48px;
  height: 44px;
  background: var(--ground);
  border-top: 17px solid var(--ecru);
  border-bottom: 17px solid var(--ecru);
}
.sl.held .cap {
  border-color: var(--white);
}
/* The second mark (ENGINE.md §20, D75): what the chosen sound was last hit with, a thin
     madder line across the track (thread until 2026-11-24: Kenny could not see it).
     ⚠ design/DESIGN.md does not draw it yet. */
.sl .hit {
  position: absolute;
  left: -15px;
  width: 36px;
  height: 2px;
  background: var(--madder);
  pointer-events: none;
}
.fkeys {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fkeys .row {
  flex: 1;
  min-height: 96px;
  display: grid;
  gap: 4px;
}
.fkeys .row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fkeys .row.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.f {
  background: var(--tile);
  color: var(--ecru);
  border-top: 12px solid var(--band, var(--ecru));
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  font-size: 20px;
} /* 18 until D139 */
.f span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.f.latch {
  background: var(--latch, var(--ecru));
  color: var(--ground);
}
.f.press {
  background: var(--white);
  color: var(--ground);
  border-top-width: 0;
  box-shadow: inset 0 0 0 var(--frame) var(--ground);
}
/* Latched by Shift+click or Shift+key (D60, D61, D113): the whole face lit in its own colour, held or not. */
.f.latched,
.f.latched.press {
  background: var(--latch, var(--ecru));
  color: var(--ground);
  border-top-width: 12px;
  box-shadow: none;
}

/* The menu (D155 item 3, D157 items 1 and 2; the board "the phone's menu", option A): a dialog
     over the keys, from under the display to the bottom, 374 px wide at 390. A head of 56 px with
     its name and a 48 px esc; eight rows of 64 px, Playing it first. A row opens its sheet in the
     same place; the list and each sheet scroll inside themselves, the page never. ⚠ The words are
     stand-ins; the sizes are tried on no phone; the second 48 px key in a sheet's head, back to
     the list, is the build's reading (the board draws the list alone). */
.menu {
  position: absolute;
  z-index: 5;
  left: 8px;
  right: 8px;
  top: calc(max(2px, env(safe-area-inset-top)) + 142px);
  bottom: calc(max(2px, env(safe-area-inset-bottom)) + 6px);
  border: 2px solid var(--ecru);
  background: var(--ground);
  display: flex;
  flex-direction: column;
  color: var(--ecru);
}
.menu[hidden] {
  display: none;
}
.mhead {
  flex: none;
  height: 56px;
  padding-left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
}
.mhead span {
  display: flex;
  gap: 4px;
  margin-right: 4px;
}
.mhead button {
  width: 48px;
  height: 48px;
  background: var(--tile);
  font-size: 16px;
}
.mhead button[hidden] {
  display: none;
}
.mbody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.mlist[hidden],
.msheet[hidden] {
  display: none;
}
.mrow {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 64px;
  padding: 0 16px;
  border-top: 2px solid var(--tile);
  text-align: left;
}
.mrow span,
.msheet a.out span {
  font-size: 18px;
  line-height: 24px;
  color: var(--ecru);
}
.mrow i,
.msheet a.out i {
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  color: var(--lilac);
}
/* A row's sheet: what sat under the instrument until D157, and Settings and the videos. */
.msheet {
  padding: 0 16px 16px;
  font-size: 18px;
}
.msheet p,
.msheet li {
  margin: 8px 0;
  color: var(--lilac);
  font-size: 16px;
  line-height: 1.5;
}
.msheet b {
  color: var(--ecru);
}
.msheet ol {
  margin: 8px 0 16px;
  padding-left: 24px;
}
.msheet li {
  color: var(--ecru);
}
/* A link stands alone, 48 px tall at least, so a thumb finds it; a link out names where it goes. */
.msheet a {
  color: var(--ecru);
}
.msheet a.out {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.msheet a.vid {
  min-height: 64px;
  padding: 0 12px;
  background: var(--tile);
  text-decoration: none;
  margin: 8px 0;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.beats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
} /* the bank's list (issue 164): a stand-in ⚠ */
.msheet button {
  min-height: 64px;
  padding: 6px 10px;
  background: var(--tile);
  text-align: left;
  font-size: 16px;
}
/* Settings (D157 item 3): reduced motion, one of three; the one in force is a lit face. */
.choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0;
}
.choice button[aria-checked="true"] {
  background: var(--ecru);
  color: var(--ground);
}
/* A row a sound: its name plays it; its switch sets code or sample and plays the result. */
.sounds {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sounds .row {
  display: flex;
  gap: 4px;
}
.sounds .name {
  flex: 1;
}
.sounds .sw {
  width: 112px;
  text-align: center;
}
/* D69: whether the sound goes through the effects (the view's bytes 58 and 59): lit, as a
     sample is, while it does. */
.sounds .fxsw {
  width: 120px;
  text-align: center;
}
.sounds .fxsw.through {
  background: var(--ecru);
  color: var(--ground);
}
/* A sample shows as a lit face, as a step does, so it does not depend on hue. */
.sounds .sw.sampled {
  background: var(--ecru);
  color: var(--ground);
}
/* The row's sound firing, from the view's counts, as a grid key goes white. */
.sounds .name.fire {
  background: var(--white);
  color: var(--ground);
}
#status {
  min-height: 1.5em;
}

/* The keys helper: the menu's Keys sheet since D157 item 2 (a sheet over the instrument until then). */
.helper {
  color: var(--lilac);
  font-size: 16px;
  line-height: 1.4;
}
.helper b,
.helper dt,
.helper h3 {
  color: var(--ecru);
}
/* A sheet over everything, menu and all: the link's prompt and the share's words. */
.over {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: auto;
  background: var(--ground);
  color: var(--lilac);
  font-size: 16px;
  line-height: 1.4;
  padding: 16px max(16px, calc((100vw - 430px) / 2 + 16px));
}
.over[hidden] {
  display: none;
}
.over b {
  color: var(--ecru);
}
.over .hhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 22px;
}
.over .hhead button {
  flex: none;
  width: 48px;
  height: 48px;
  background: var(--tile);
  color: var(--ecru);
  font-size: 16px;
}
.helper .hmap {
  display: flex;
  gap: 12px;
  margin: 16px 0 4px;
}
.helper .hgrid {
  width: 188px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.helper .hgrid span {
  height: 44px;
  background: var(--ecru);
  color: var(--ground);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.helper .hsl {
  width: 92px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-content: start;
  text-align: center;
}
.helper .hsl span {
  height: 44px;
  line-height: 44px;
  color: var(--ecru);
}
.helper .hsl b,
.helper .hfn b {
  height: 44px;
  background: var(--tile);
  border-top: 6px solid var(--band, var(--ecru));
  font-size: 20px;
  line-height: 38px;
}
.helper .hsl b {
  --band: var(--lilac);
}
.helper .hfn {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}
.helper .hfn.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* In the menu a column is narrower than `function` at 16 px: a column grows to its word. */
.helper .hfn.four {
  grid-template-columns: repeat(4, minmax(min-content, 1fr));
}
.helper .hfn b {
  height: 56px;
  padding: 0 4px;
  line-height: 1.2;
  font-size: 16px;
}
.helper .hfn i {
  display: block;
  font-style: normal;
  font-size: 20px;
}
.helper h3 {
  font-size: 16px;
  margin: 16px 0 6px;
}
.helper p {
  margin: 6px 0;
}
.helper dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 6px 12px;
  margin: 16px 0;
}
.helper dd {
  margin: 0;
}
/* The link's prompt and the share sheet (D144, D145). ⚠ A stand-in until Kenny rules a look;
     D157 moved Share into the menu and left these sheets as they were, but for a 48 px esc. */
.over.sheetlike {
  font-size: 18px;
}
.over.sheetlike p {
  margin: 12px 0;
}
.over.sheetlike .askname {
  color: var(--ecru);
  font-size: 22px;
  margin-top: 20px;
}
.over.sheetlike .askcredit {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.over.sheetlike .two button,
.over.sheetlike button.plain {
  min-height: 64px;
  padding: 6px 10px;
  background: var(--tile);
  color: var(--ecru);
  font-size: 18px;
  text-align: left;
}
.over.sheetlike button.plain {
  min-height: 48px;
  background: none;
  text-decoration: underline;
  padding: 0;
}
.over.sheetlike textarea {
  width: 100%;
  height: 160px;
  background: var(--display);
  color: var(--ecru);
  border: 2px solid var(--ecru);
  font:
    800 14px / 1.4 "JetBrains Mono",
    ui-monospace,
    monospace;
  word-break: break-all;
  resize: none;
}
.over.sheetlike textarea[hidden] {
  display: none;
}

/* A short screen: the function keys' words still fit up the key. */
@media (max-height: 720px) {
  .f {
    font-size: 16px;
  }
}

/* On its side (D155 item 4; D158 items 5 to 9; issue 205; the board "on its side"). The script's
     layout() chooses upright, side or ask, and sets the sizes as px: --k the key, --right the
     right-hand column, --pt --pr --pb --pl the four insets (at least 2 px). Nothing here applies
     upright. The grid on the left, as tall as the safe area; the display over the sliders and the
     function keys on the right. The key is never larger than the phone's upright one, so a desktop
     window is not grown (item 8): the layout is centred at its own size. */
html[data-layout="side"] body,
html[data-layout="ask"] body {
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-layout="side"] .table {
  flex: none;
  margin: 0;
  min-height: 0;
  width: calc(var(--pl) + var(--pr) + 4 * var(--k) + 30px + var(--right));
  height: calc(var(--pt) + var(--pb) + 4 * var(--k) + 18px);
  padding: var(--pt) var(--pr) var(--pb) var(--pl);
}
html[data-layout="side"] .body {
  display: grid;
  gap: 12px;
  grid-template-columns: calc(4 * var(--k) + 6px) var(--right);
  grid-template-rows: 124px minmax(0, 1fr);
}
html[data-layout="side"] .grid {
  grid-column: 1;
  grid-row: 1 / 3;
  grid-template-columns: repeat(4, var(--k));
  align-content: start;
}
html[data-layout="side"] .k {
  height: var(--k);
}
html[data-layout="side"] .display {
  grid-column: 2;
  grid-row: 1;
}
html[data-layout="side"] .bottom {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
}
html[data-layout="side"] .fkeys .row {
  min-height: 0;
}
/* The words: 20 px in the top row and 16 below, as the board; across the key where the word fits
     and up it where it does not (item 7), which layout() measures. */
html[data-layout="side"] .fkeys .row.three .f {
  font-size: 20px;
}
html[data-layout="side"] .fkeys .row.four .f {
  font-size: 16px;
}
html[data-layout="side"] .f.across span {
  writing-mode: horizontal-tb;
  transform: none;
}
/* The menu on its side (item 9): over the whole instrument, the eight rows in two columns of four.
     ⚠ Not drawn on any board. The same in the ask. */
html[data-layout="side"] .menu,
html[data-layout="ask"] .menu {
  top: calc(var(--pt) + 6px);
  right: calc(var(--pr) + 6px);
  bottom: calc(var(--pb) + 6px);
  left: calc(var(--pl) + 6px);
}
html[data-layout="side"] .mlist:not([hidden]),
html[data-layout="ask"] .mlist:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, 64px);
  grid-auto-flow: column;
  column-gap: 2px;
}
html[data-layout="side"] .mrow,
html[data-layout="ask"] .mrow {
  min-width: 0;
}
html[data-layout="side"] .mrow span,
html[data-layout="side"] .mrow i,
html[data-layout="ask"] .mrow span,
html[data-layout="ask"] .mrow i {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The ask (items 5 and 6): wider than tall and no room for the keys. One screen, dark, the
     instrument out of sight but playing on, the menu in its corner. ⚠ The words are stand-ins. */
.ask {
  display: none;
}
html[data-layout="ask"] .table {
  flex: none;
  width: 100vw;
  max-width: none;
  height: 100svh;
  min-height: 0;
  margin: 0;
  padding: var(--pt) var(--pr) var(--pb) var(--pl);
}
html[data-layout="ask"] .body {
  display: none;
}
html[data-layout="ask"] .ask {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  height: 100%;
  padding: 16px 72px 16px 24px;
  background: var(--ground);
  border: 2px dashed var(--thread);
  color: var(--lilac);
  font-size: 18px;
  line-height: 1.4;
  overflow-y: auto;
}
.ask h1 {
  margin: 0 0 12px;
  color: var(--ecru);
  font-size: 24px;
  line-height: 1.2;
}
.ask p {
  margin: 0 0 10px;
}
.ask b {
  color: var(--ecru);
}
.ask .askmenu {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 48px;
  height: 48px;
  background: var(--tile);
  color: var(--ecru);
  font-size: 16px;
}
.ask .askmenu[aria-expanded="true"] {
  background: var(--ecru);
  color: var(--ground);
}

/* Reduced motion as Settings has it (D157 item 3): the system's, on or off. The script sets the
     attribute; until it runs, the system's. */
/* biome-ignore-start lint/complexity/noImportantStyles: reduced motion must win over every transition and animation on the page, whatever its selector */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion]) * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
html[data-motion="still"] * {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}
/* biome-ignore-end lint/complexity/noImportantStyles: reduced motion */
