/* Home (src/ui/home/; docs/ui-pass/start-screen-mock/NOTES.md, approved): the page's own title strip and its Home key,
   and the plate that floats over the scene. Materials are the instrument's tokens (styles/instrument-tokens.css); inks
   reach the plate only through the kit's --deal-* properties; every dot is printed by the Display's painter. */

/* ---------- The title strip (title-strip.ts): the window's top 32 px, drawn by the page. It drags the window; its left
   is left clear for the traffic lights the system draws there; the Home key sits at its right, 10 in. */
.title-strip {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--strip-h, 32px); box-sizing: border-box;
  display: flex; align-items: center; background: var(--note-title-strip); box-shadow: inset 0 -1px 0 #000;
  -webkit-user-select: none; user-select: none; cursor: default;
}
.title-strip[hidden] { display: none; }
.title-strip-lights { flex: none; width: 78px; height: 100%; }
.title-strip-name { color: var(--note-text); font: var(--note-weight-label) var(--note-text-sm)/16px var(--note-font); }
.title-strip-room { flex: 1 1 auto; align-self: stretch; }
.title-strip .home-key-root { display: flex; align-items: center; padding-right: 10px; }

/* The Home key (home-key.ts): a faced key a step down from the compact key (22 high, 12 px word), as the Add track key
   steps down; the mark, its word and a latch's lamp, lit in the selection ink while the plate is open. */
.kit .kit-key.home-key { height: 22px; min-width: 0; padding: 0 8px 0 7px; gap: 6px; font-size: var(--note-text-xs); line-height: 16px; background: var(--note-key-hover); }
.kit .kit-key.home-key:hover { background: color-mix(in srgb, var(--note-text) 8%, var(--note-key-hover)); }
.kit .kit-key.home-key .lamp { margin-left: 1px; }
.kit .kit-key.home-key.on .lamp { background: var(--deal-on); }

/* ---------- The plate (home-plate.ts): the casing, floating over the scene as the guide's plate and the toasts float
   (no scrim, nothing dimmed); placed by home.ts. Its size is fixed per window: it never grows with the songs. */
.kit.home-plate {
  position: fixed; z-index: 60; box-sizing: border-box; width: max-content; padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  border-radius: 20px; background: var(--note-casing); box-shadow: 0 0 0 1px var(--note-rule), 0 10px 32px rgba(0, 0, 0, .55);
}
.kit.home-plate[hidden] { display: none; }
.kit.home-plate > .home-head { display: flex; align-items: center; justify-content: space-between; height: 28px; margin: -8px -10px -4px 0; }
.kit.home-plate > .home-head h2 { margin: 0; color: var(--note-text); font: var(--note-weight-label) var(--note-text-md)/24px var(--note-font); }

/* Two screens, separate windows parted by the frame's own gutter (the room between a docked panel and the scene): the
   mark's, about square, and the songs'. A screen is the Display's window (#141414, radius 10), exactly its dots. */
.kit.home-plate > .home-screens { display: flex; gap: var(--frame-edge, 14px); }
.kit .home-screen { position: relative; flex: none; line-height: 0; border-radius: 10px; background: var(--note-window); overflow: hidden; }
.kit .home-screen > canvas { display: block; }
.kit .home-song { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; }
.kit .home-song:focus { outline: none; }

/* ---------- The keys (home-keys.ts): faced keys, the transport's caps grown, their legends printed under the caps (a row)
   or beside them (the small window's grid). New song is the primary key: a solid block of the selection ink. */
.kit .home-keys.row { display: flex; justify-content: space-between; padding: 0 4px; }
.kit .home-keys.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
.kit .home-fkey {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--note-text-muted); font: var(--note-weight-text) var(--note-text-sm)/16px var(--note-font); white-space: nowrap;
}
.kit .home-keys.grid .home-fkey { flex-direction: row; gap: 10px; }
.kit .home-fkey > .cap {
  display: flex; align-items: center; justify-content: center; width: 76px; height: 56px; border-radius: 6px;
  background: var(--note-key); color: var(--deal-on-pair); transition: background 80ms var(--note-ease), translate 80ms var(--note-ease);
}
.kit .home-keys.grid .home-fkey > .cap { width: 44px; height: 36px; }
.kit .home-fkey:hover > .cap { background: var(--note-key-hover); }
.kit .home-fkey:hover { color: var(--note-text); }
.kit .home-fkey:active > .cap { background: var(--note-key-press); translate: 0 1px; transition: none; }
.kit .home-fkey.primary { color: var(--note-text); font-weight: var(--note-weight-label); }
.kit .home-fkey.primary > .cap { background: var(--deal-on); }
.kit .home-fkey.primary:hover > .cap { background: color-mix(in srgb, var(--deal-on) 84%, white); }
.kit .home-fkey.primary:active > .cap { background: color-mix(in srgb, var(--deal-on) 85%, var(--note-casing)); }
.kit .home-fkey:focus { outline: none; }
.kit .home-fkey:focus-visible > .cap { outline: 2px solid var(--deal-on); outline-offset: 2px; }

/* ---------- NOTE on the web (src/ui/web-about.ts): the website's About, the Home plate's casing and parts. Its screens
   stack, each the plate's width (the mark's and the intro's side by side on the first), parted by the frame's gutter
   (set in whole dots by the module); under them two faced keys, legends beside their caps: Get the app (the primary
   key; without an address a disabled key reading "Mac app: coming soon") and Keep playing. */
.kit.home-plate.web-about { gap: 16px; }
.kit.home-plate.web-about > .web-about-screens { display: flex; flex-direction: column; gap: 20px; }
/* Each screen under its heading, set in the interface's type as a kit section head (12 / 500, muted): the headings are
   read, the screens are the readouts. */
.kit.home-plate.web-about .web-about-part { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.kit.home-plate.web-about .web-about-part > .sh { margin: 0; color: var(--note-text-muted); font: var(--note-weight-label) var(--note-text-xs)/16px var(--note-font); }
.kit.home-plate.web-about .web-about-screens .home-screens { display: flex; }
.kit .home-keys.grid.web-about-keys { display: flex; gap: 24px; padding: 0 2px; }
.kit a.home-fkey { text-decoration: none; }
.kit .home-fkey.soon, .kit .home-fkey.soon:hover { cursor: default; color: var(--note-text-faint); }
.kit .home-fkey.soon > .cap, .kit .home-fkey.soon:hover > .cap, .kit .home-fkey.soon:active > .cap { background: var(--note-key-off); translate: none; }

/* The first-visit line (soundStartHint): one screen in a casing, floating at the top of the scene like a toast; it takes
   no pointer and goes at the first gesture. */
.kit.web-sound-hint {
  position: fixed; z-index: 55; top: 16px; left: 50%; translate: -50% 0; padding: 6px; border-radius: 16px;
  background: var(--note-casing); box-shadow: 0 0 0 1px var(--note-rule), 0 8px 24px rgba(0, 0, 0, .5); pointer-events: none;
}
