/* Look it up: the references in Learn (js/lookup.js and its pages; docs/jam/learn-plan.md §12; "Alive Jam mockups"
   screens 8 to 15). Nick's side. They open in the drill-through's sheet or panel (drill.css), starlight on glass like
   the games, and the neck is the games' own (fretboard.css). Colour only ever means music: a chord's colour is its
   step from home, home is gold, and everything you tap is starlight and hairlines. Nothing spills sideways at 390px. */

.lu {
  --lu-box: #0A0C13;
  --lu-gold: #F6AD3B;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding-bottom: 8px;
  color: var(--starlight);
}

.lu :focus-visible {
  outline: 2px solid var(--starlight);
  outline-offset: 2px;
}

.lu p,
.lu h3,
.lu ol,
.lu ul {
  margin: 0;
}

.lu ol,
.lu ul {
  padding: 0;
  list-style: none;
}

.lu-lede {
  color: color-mix(in srgb, var(--starlight) 82%, transparent);
  font-size: 14.5px;
  line-height: 1.5;
}

.lu-line {
  color: color-mix(in srgb, var(--starlight) 86%, transparent);
  font-size: 14px;
  line-height: 1.5;
}

.lu-line strong {
  color: var(--starlight);
  font-weight: 600;
}

.lu-note {
  color: #A6A3AC;
  font-size: 13px;
  line-height: 1.45;
}

.lu-k {
  color: #A6A3AC;
  font-size: 12.5px;
}

.lu-h {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.lu-hsub {
  color: #A6A3AC;
  font-weight: 400;
}

.lu-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.lu-mono {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: .02em;
}

.lu-hrow,
.lu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.lu-row {
  justify-content: flex-start;
}

.lu-grow {
  flex: 1;
}

.lu-stack {
  display: grid;
  gap: 8px;
}

.lu-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--lu-box);
}

.lu-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lu .chip {
  min-height: 44px;
  padding: 0 14px;
  color: var(--starlight);
  font-size: 13.5px;
}

.lu .chip .ic {
  width: 16px;
  height: 16px;
}

/* The buttons: one filled (what the page is for), the rest outlined. */
.lu-go,
.lu-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
}

.lu-go {
  background: var(--starlight);
  color: var(--space);
}

.lu-wide {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  font-weight: 500;
}

.lu-play {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: 50%;
  color: var(--starlight);
}

.lu-play .ic {
  width: 18px;
  height: 18px;
}

.lu-playw {
  display: inline-flex;
  gap: 6px;
  width: auto;
  padding: 0 16px 0 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
}

.lu-play:disabled,
.lu-icon:disabled,
.lu .chip:disabled {
  opacity: .4;
}

.lu-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--starlight);
}

.lu-icon .ic {
  width: 18px;
  height: 18px;
}

.lu-pair {
  display: inline-flex;
  gap: 6px;
}

/* The sprite's chevron points right: turned for left, up and down. */
.lu-left {
  transform: rotate(180deg);
}

.lu-upicon {
  transform: rotate(-90deg);
}

.lu-downicon {
  transform: rotate(90deg);
}

/* ---------- a drawer inside a page: Borrowed and pull, Sevenths, Sus and add9, the circle ---------- */

.lu-fold {
  padding: 2px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--lu-box);
}

.lu-fh {
  margin: 0;
}

.lu-fbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 6px 0;
  color: var(--starlight);
  text-align: left;
}

.lu-fwords {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
}

.lu-fname {
  font-size: 15px;
  font-weight: 600;
}

.lu-fsub {
  color: #A6A3AC;
  font-size: 12.5px;
  font-weight: 400;
}

.lu-fopen {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  color: #C9C5CE;
  font-size: 13px;
}

.lu-chev {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}

.lu-chev.is-up {
  transform: rotate(-90deg);
}

.lu-fbody {
  padding: 0 0 14px;
}

.lu-fbody[hidden] {
  display: none;
}

/* ---------- numbered lines (a key's reasons, Good to know) ---------- */

.lu-num {
  display: grid;
  gap: 8px;
}

.lu-num li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lu-n {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: 50%;
  font-size: 11.5px;
  line-height: 1;
}

.lu-num p {
  flex: 1;
  min-width: 0;
  color: #C9C5CE;
  font-size: 14px;
  line-height: 1.45;
}

.lu-num strong {
  color: var(--starlight);
  font-weight: 600;
}

/* ---------- the key: which, whether it's your song's, and Hear home ---------- */

.lu-keyrow {
  display: grid;
  gap: 10px;
}

.lu-keyline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lu-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.lu-key .ic {
  width: 16px;
  height: 16px;
}

.lu-keylab,
.lu-mine {
  color: #A6A3AC;
  font-size: 12.5px;
  font-weight: 400;
}

.lu-keylab {
  font-size: 14px;
}

.lu-keypick {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--lu-box);
}

.lu-keypick[hidden] {
  display: none;
}

.lu-notes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.lu .lu-notekey {
  justify-content: center;
  padding: 0;
  font-size: 15px;
}

/* ---------- the circle: rings of cells, a key lit as one block ---------- */

.lu-circle {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.lu-cell {
  position: absolute;
  inset: 0;
  padding: 0;
  background: color-mix(in srgb, var(--starlight) 7%, transparent);
  color: #C9C5CE;
}

.lu-cell.is-lit {
  background: var(--c);
  color: var(--on, var(--space));
}

button.lu-cell {
  cursor: pointer;
}

button.lu-cell:focus-visible {
  outline: none;
  filter: brightness(1.3);
}

button.lu-cell:focus-visible .lu-cname {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  button.lu-cell:not(.is-lit):hover {
    background: color-mix(in srgb, var(--starlight) 14%, transparent);
  }
}

.lu-clabel {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.lu-cname {
  font-size: clamp(13px, 4.2cqw, 16px);
  font-weight: 600;
  line-height: 1.1;
}

.is-minor .lu-cname {
  font-size: clamp(11.5px, 3.4cqw, 13.5px);
}

.lu-csig {
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.1;
}

.lu-circle {
  container-type: inline-size;
}

/* Your song's key: a ring round its name. */
.lu-cell.is-song .lu-cname {
  padding: 1px 5px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}

.lu-block {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lu-block path {
  fill: none;
  stroke: var(--starlight);
  stroke-linejoin: round;
  stroke-width: 2.5px;
  vector-effect: non-scaling-stroke;
}

.lu-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  width: 37%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.lu-hubkey {
  font-family: var(--serif);
  font-size: clamp(15px, 5cqw, 19px);
  line-height: 1.2;
}

.lu-hubsig {
  max-width: 11ch;
  color: #A6A3AC;
  font-size: 11px;
  line-height: 1.25;
}

/* ---------- a key's chords ---------- */

.lu .cc-box {
  min-width: 0;
}

.lu-seven {
  display: grid;
}

.lu-chordrow {
  display: grid;
  align-items: start;
}

.lu-job {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lu-jobname {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
}

.lu-tag {
  padding: 1px 8px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: 999px;
  color: #C9C5CE;
  font-size: 11.5px;
  font-weight: 500;
}

.lu-notes {
  color: #A6A3AC;
  font-family: var(--mono);
  font-size: 12px;
}

.lu-tier {
  display: grid;
  gap: 10px;
}

.lu-tierlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px 8px;
}

.lu-tierlist.is-words {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

/* ---------- scales ---------- */

.lu-pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.lu-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #A6A3AC;
  font-size: 13px;
}

.lu-pick .msel {
  min-height: 44px;
}

.lu-scale {
  display: grid;
  gap: 10px;
}

.lu-degs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lu-degs li {
  display: grid;
  justify-items: center;
  min-width: 46px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.lu-degn {
  font-size: 16px;
  font-weight: 600;
}

.lu-degd {
  color: #A6A3AC;
  font-family: var(--mono);
  font-size: 12px;
}

.lu-shape {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lu-shape1 {
  display: grid;
  justify-items: center;
  min-width: 40px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.lu-shapes {
  color: #A6A3AC;
  font-family: var(--mono);
  font-size: 12px;
}

.lu-shapen {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}

.lu-move {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.lu-moveat {
  color: #C9C5CE;
  font-size: 13.5px;
  text-align: center;
}

.lu-lowe {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}

.lu-lowe li {
  display: grid;
  justify-items: center;
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lu-lowe li.is-root {
  border-color: var(--lu-gold);
  background: color-mix(in srgb, var(--lu-gold) 22%, transparent);
}

.lu-lowen {
  font-size: 15px;
  font-weight: 600;
}

.lu-lowef {
  color: #A6A3AC;
  font-family: var(--mono);
  font-size: 11px;
}

.lu-more {
  display: grid;
  gap: 8px;
}

/* the neck, inside a page: the games' own, with room under it */
.lu .fb-neck {
  margin: 0;
}

/* ---------- two octaves of keys in one row ---------- */

.lu-keys {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--whites), minmax(0, 1fr));
  height: 128px;
  border-radius: 8px;
}

.lu-pk {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 8px;
  cursor: pointer;
}

.lu-pk.is-white {
  border: 1px solid rgba(23, 22, 20, .5);
  border-radius: 0 0 6px 6px;
  background: #FBFAF6;
  color: #171614;
}

.lu-pk.is-black {
  position: absolute;
  top: 0;
  left: calc(100% / var(--whites) * var(--at) - 100% / var(--whites) * .31);
  z-index: 1;
  width: calc(100% / var(--whites) * .62);
  height: 62%;
  padding-bottom: 6px;
  border-radius: 0 0 4px 4px;
  background: #171614;
  color: #FBFAF6;
}

.lu-kdot {
  display: grid;
  place-items: center;
  min-width: 18px;
  min-height: 18px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.lu-pk[data-state="home"] .lu-kdot,
.lu-pk[data-state="lit"] .lu-kdot {
  padding: 3px;
  border-radius: 999px;
}

.lu-pk[data-state="home"] {
  background: var(--lu-gold);
  color: #171614;
}

.lu-pk.is-white[data-state="lit"] {
  background: #9FD0E8;
}

.lu-pk.is-black[data-state="lit"] {
  background: #3E8DB5;
  color: #FFFFFF;
}

.lu-pk:focus-visible {
  z-index: 2;
}

/* ---------- the chord finder: guitar upright ---------- */

.lu-upwrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.lu-up {
  display: grid;
  flex: 1;
  grid-template-columns: 26px repeat(var(--n), minmax(0, 1fr));
  max-width: 380px;
}

.lu-upside {
  display: grid;
  gap: 8px;
  padding-top: 52px;
}

.lu-upfret {
  display: grid;
  place-items: center;
  color: #A6A3AC;
  font-family: var(--mono);
  font-size: 12px;
}

.lu-upnut {
  display: grid;
  place-items: center;
  height: 44px;
  color: var(--starlight);
}

.lu-x {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.lu-o {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--starlight);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.lu-offf {
  color: #A6A3AC;
  font-family: var(--mono);
  font-size: 12px;
}

/* A fret's cell: its string down the middle, its fret line under it. The first row's top is the nut. */
.lu-upcell {
  position: relative;
  display: grid;
  place-items: center;
  height: 46px;
  border-bottom: 2px solid color-mix(in srgb, var(--starlight) 30%, transparent);
}

.lu-upcell::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: color-mix(in srgb, var(--starlight) 72%, transparent);
  content: "";
}

.lu-upcell.is-muted::before {
  background: color-mix(in srgb, var(--starlight) 24%, transparent);
}

.lu-upcell.is-first {
  border-top: 7px solid var(--starlight);
}

.lu-updot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--starlight);
  color: var(--space);
  font-size: 13px;
  font-weight: 600;
}

@media (hover: hover) {
  .lu-upcell:not(.is-on):hover::after {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--starlight) 16%, transparent);
    content: "";
  }
}

/* The strings' letters, big and in full ink (Nick: "too small and light"). */
.lu-upname {
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.lu-lowhigh {
  justify-content: space-between;
}

.lu-shapeline {
  font-size: 16px;
}

.lu-found {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: var(--r-card);
  background: var(--lu-box);
}

.lu-foundrow {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.lu-foundwords {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.lu-said {
  color: var(--starlight);
  font-size: 13.5px;
}

.lu-close {
  display: grid;
  gap: 6px;
}

.lu-nearlist {
  display: grid;
  gap: 2px;
}

.lu-near {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--starlight);
  text-align: left;
}

@media (hover: hover) {
  .lu-near:hover {
    background: var(--lift);
  }
}

.lu-nearname {
  font-size: 15px;
  font-weight: 600;
}

.lu-nearline {
  color: #C9C5CE;
  font-size: 13px;
  line-height: 1.4;
}

/* ---------- the key finder ---------- */

.lu-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px 6px;
}

.lu-typerow {
  display: flex;
  gap: 8px;
}

.lu-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: 12px;
  background: var(--space);
  color: var(--starlight);
  font: inherit;
  font-size: 16px;
}

.lu-input::placeholder {
  color: #A6A3AC;
}

.lu-keyis {
  border-color: color-mix(in srgb, var(--starlight) 30%, transparent);
}

.lu-keytitle {
  font-size: 30px;
  line-height: 1.1;
}

.lu-whynot {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ---------- intervals ---------- */

.lu-iname {
  font-family: var(--serif);
  font-size: 21px;
}

.lu-shapes2 {
  display: grid;
  gap: 4px;
}

.lu-shapes2 li {
  display: grid;
  grid-template-columns: 34px minmax(88px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  color: #A6A3AC;
  font-size: 13.5px;
}

.lu-shapes2 li.is-on {
  color: var(--starlight);
  font-weight: 600;
}

.lu-s2note {
  font-weight: 600;
}

/* ---------- Keys and Chords (build G; canvas screens 9 and 11) ---------- */

.lu-intro {
  display: grid;
  gap: 8px;
}

.lu-litline {
  color: #C9C5CE;
  font-size: 13.5px;
}

/* Key Finder's chords, ringed on the circle as your song's key is. */
.lu-cell.is-ringed .lu-cname {
  padding: 1px 5px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}

.lu-showrow {
  align-items: center;
}

.lu-showrow .lu-k {
  margin-right: 2px;
  font-size: 13px;
}

/* The two choices on this page that say how it's shown: the one picked is filled, as on the canvas. */
.lu-showrow .chip[aria-pressed="true"],
.lu-shapeson .chip[aria-pressed="true"],
.lu-kf .chip[aria-pressed="true"] {
  border-color: var(--starlight);
  background: var(--starlight);
  color: var(--space);
  font-weight: 600;
}

.lu-chords {
  gap: 8px;
  padding: 12px;
  border-color: color-mix(in srgb, var(--starlight) 30%, transparent);
}

.lu-chords > .lu-hrow {
  flex-wrap: nowrap;
}

.lu-chords > .lu-hrow .lu-h {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
}

.lu .lu-playall {
  flex: none;
  gap: 7px;
  width: auto;
  padding: 0 14px 0 11px;
}

.lu-playall .ic {
  width: 16px;
  height: 16px;
}

.lu-shapeson {
  display: grid;
  gap: 6px;
  padding: 4px 0 2px;
}

.lu-shapeson .lu-seg {
  gap: 6px;
}

.lu-shapeson .chip {
  padding: 0 13px;
}

.lu-from {
  color: #C9C5CE;
}

.lu-seven > li + li,
.lu-tierlist.is-words > li + li {
  border-top: 1px solid var(--line);
}

/* A chord's row: its card and notes, what it does, and its shape. */
.lu .lu-chordrow {
  grid-template-columns: 76px minmax(0, 1fr) 84px;
  gap: 10px;
  padding: 10px 0;
}

.lu-tierlist.is-words {
  gap: 0;
}

.lu-chordrow .lu-job {
  gap: 2px;
}

.lu-chordrow .lu-jobname {
  font-size: 15px;
  line-height: 1.3;
}

.lu-chordrow .lu-line {
  color: #C9C5CE;
  font-size: 13px;
  line-height: 1.4;
}

.lu-chordrow .lu-tag {
  flex: none;
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.lu-pullnote strong {
  color: var(--starlight);
  font-weight: 600;
}

/* A chord's shape, the app's own chord picture; tapping it opens the chord's other shapes. */
.lu-shapebtn {
  display: block;
  width: 84px;
  padding: 0;
  color: var(--starlight);
}

.lu-shapebtn .cd-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--starlight);
}

.lu-shapebtn.is-piano {
  align-self: center;
}

/* Sevenths and Sus and add9: a card with its shape under it. */
.lu-tierlist:not(.is-words) {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 14px 10px;
}

.lu-tile {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.lu-tile .lu-shapebtn {
  width: min(100%, 84px);
}

/* Key Finder, the last drawer (canvas screen 11) */

.lu-kf {
  display: grid;
  gap: 10px;
}

.lu-yourrow {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.lu-yourrow > ol,
.lu-yourrow > p {
  flex: 1;
  min-width: 0;
}

.lu-yours .lu-chips {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
}

.lu-addone {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px dashed color-mix(in srgb, var(--starlight) 40%, transparent);
  border-radius: 11px;
  color: var(--starlight);
  font-size: 20px;
  line-height: 1;
}

@media (min-width: 900px) {
  .lu-seven,
  .lu-tierlist.is-words {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .lu-seven > li + li,
  .lu-tierlist.is-words > li + li {
    border-top: 0;
  }

  .lu-seven > li:nth-child(n + 3),
  .lu-tierlist.is-words > li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .lu-yours .lu-chips {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  }
}

/* ---------- the song builder's key "i": its circle ---------- */

.sb-circle {
  width: min(100%, 300px);
  margin: 4px 0;
}

.sb-circle .lu-circle {
  width: 100%;
}

.sb-circleh {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* "In your song": the song's chords in a row, small (canvas screen 10). */
.sb-whysong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.sb-whysong .cc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: auto;
}

/* Tap another cell to try the song in that key. */
.sb-circle button.lu-cell:focus-visible {
  outline: none;
  filter: brightness(1.3);
}

.sb-whybtns {
  display: grid;
  gap: 8px;
  max-width: 480px;
  margin-top: 4px;
}

.sb-whybtns .sb-btn {
  justify-content: center;
  min-height: 44px;
}

@media (min-width: 720px) {
  .lu-foundrow {
    grid-template-columns: 132px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lu * {
    transition: none !important;
  }
}

/* "How to play it": under a chord, it opens the chord's shapes (learn-plan.md §12's door). */
.lu-how {
  justify-self: start;
  min-height: 32px;
  padding: 0;
  color: var(--starlight);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--starlight) 40%, transparent);
  text-underline-offset: 3px;
}

.lu-row .lu-how {
  min-height: 44px;
  padding: 0 6px;
}

.lu-shapespage .cdias {
  justify-content: flex-start;
}
