/*
 * web/landing/shells/ShapeStrip.css - the nine mouth shapes as chips
 * (web/landing/shells/ShapeStrip.js). A section imports it at the top of its sheet:
 *   @import url('/web/landing/shells/ShapeStrip.css');
 *
 * Each chip is the shape's letter in mono over its sound group, small and muted: a legend
 * you can point at. The pinned chip takes the accent border (the one accent, as a pressed
 * control); focus is the page's violet ring. Without a script the chips are a plain legend
 * (disabled, undimmed). Nothing here touches the stage: the frame a chip shows is the
 * stage's own layer.
 */

.shape-strip {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.shape-strip-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 6px;
  max-width: 560px;
}

.shape-strip-chips[hidden],
.shape-strip-chip[hidden] { display: none; }

.shape-strip-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color .1s, background-color .1s;
}

.shape-strip-chip:hover { border-color: var(--muted); }

.shape-strip-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shape-strip-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--ink);
}

/* A legend without a script, and a pause while a line owns the mouth. */
.shape-strip-chip:disabled { cursor: default; color: var(--text); }
.shape-strip-chip:disabled:hover { border-color: var(--line); }
.shape-strip-chip[aria-disabled="true"] { cursor: default; opacity: .55; }
.shape-strip-chip[aria-disabled="true"]:hover { border-color: var(--line); }

.shape-strip-letter {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.1;
}

.shape-strip-sound {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
}

.shape-strip-note {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
