/* Log your playing (round 6, js/logplay.js; screens 39, 39b and 40 of "Alive Jam mockups"): the form, what grew, a
   Logged line's Change and Remove, Evergreen's card, and the card in Riff's chat. */

.lg {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.lg-lede {
  margin: 0;
  color: var(--dust);
  font-size: 14px;
}

.lg-sec {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.lg-k {
  margin: 0;
  color: color-mix(in srgb, var(--starlight) 78%, transparent);
  font-size: 13px;
  font-weight: 500;
}

.lg-soft {
  color: var(--dust);
  font-weight: 400;
}

.lg-fine {
  margin: 0;
  color: var(--dust);
  font-size: 12.5px;
  line-height: 1.45;
}

.lg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.lg .chip {
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
}

.lg .lg-skill {
  max-width: 100%;
  padding: 0 14px 0 8px;
  text-align: left;
}

.lg .lg-skill > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lg .lg-skill[aria-pressed="true"] {
  border-color: #9EDA97;
  background-color: rgba(158, 218, 151, .16);
}

.lg .lg-skill[aria-pressed="true"]::after {
  content: "✓";
  color: #CDEBCA;
  font-size: 13px;
}

.lg .lg-morebtn {
  border-style: dashed;
}

.lg-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: 12px;
  background: #0A0C13;
  color: var(--starlight);
  font: inherit;
  font-size: 16px;
  color-scheme: dark;
}

.lg-input::placeholder {
  color: var(--dust);
}

.lg-dayrow {
  display: grid;
  gap: 6px;
  max-width: 260px;
}

/* How long: measures of music, then the minutes, then the quick picks */
.lg-staffbox {
  padding: 8px 8px 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #0A0C13;
}

.lg-staff {
  display: block;
}

.lg-staff .lg-sl {
  stroke: rgba(241, 237, 228, .28);
  stroke-width: 1;
}

.lg-staff .lg-bar {
  stroke: rgba(241, 237, 228, .45);
  stroke-width: 1.2;
}

.lg-staff .lg-note {
  fill: #F6AD3B;
}

.lg-staff .lg-stem {
  stroke: #F6AD3B;
  stroke-width: 1.6;
}

.lg-staff .lg-end1 {
  stroke: var(--starlight);
  stroke-width: 1.3;
}

.lg-staff .lg-end2 {
  stroke: var(--starlight);
  stroke-width: 4;
}

.lg-mins {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.lg-step {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: 50%;
  color: var(--starlight);
}

.lg-step:disabled {
  opacity: .4;
}

.lg-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 84px;
  line-height: 1;
}

.lg-n {
  font-family: var(--serif);
  font-size: 44px;
}

.lg-u {
  margin-top: 4px;
  color: var(--dust);
  font-size: 12.5px;
}

.lg-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.lg .lg-q {
  justify-content: center;
  min-width: 52px;
}

.lg .lg-q[aria-pressed="true"],
.lg-segb[aria-pressed="true"] {
  border-color: var(--starlight);
  background-color: var(--starlight);
  color: var(--space);
  font-weight: 600;
}

/* What you played: tiles, each drawn as itself */
.lg-insts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.lg-inst {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 80px;
  padding: 6px 2px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: var(--r-card);
  color: color-mix(in srgb, var(--starlight) 78%, transparent);
  font-size: 12.5px;
}

.lg-inst[aria-pressed="true"] {
  border: 1.5px solid var(--starlight);
  background-color: rgba(241, 237, 228, .14);
  color: var(--starlight);
}

.lg-instname {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

@media (min-width: 640px) {
  .lg-insts {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

/* A choice of one */
.lg-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: var(--r-card);
}

.lg-segb {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 10px;
  color: color-mix(in srgb, var(--starlight) 78%, transparent);
  font-size: 14px;
  text-align: center;
}

.lg-ic {
  display: inline-grid;
  flex: none;
  place-items: center;
}

.lg-more {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.lg-limb {
  display: grid;
  gap: 6px;
}

.lg-limbk {
  margin: 0;
  color: var(--dust);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lg-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lg-go,
.lg-cancel,
.lg-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
}

.lg-go {
  border-color: var(--starlight);
  background-color: var(--starlight);
  color: var(--space);
  font-weight: 600;
}

/* What grew (39b) */
.lg-grew {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: 16px;
  background: radial-gradient(120% 100% at 50% 0%, #24364A 0%, #0A0C13 72%);
  text-align: center;
}

.lg-grewpic {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lg-arrow {
  color: var(--dust);
  font-size: 18px;
}

.lg-glow {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.lg-glow::before {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 241, 196, .35), transparent 70%);
  content: "";
  animation: lg-light 1.6s var(--ease-out) both;
}

@keyframes lg-light {
  0% {
    opacity: 0;
    transform: scale(.6);
  }

  40% {
    opacity: 1;
    transform: scale(1.15);
  }

  100% {
    opacity: .8;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-glow::before {
    animation: none;
  }
}

.lg-grewh {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.lg-grewh:focus {
  outline: none;
}

.lg-grewl {
  margin: 0;
  color: color-mix(in srgb, var(--starlight) 78%, transparent);
  font-size: 14px;
}

.lg-pts {
  color: #F6AD3B;
  font-family: var(--mono);
  font-size: 14px;
}

.lg-grew .lg-acts {
  justify-content: center;
  margin-top: 4px;
}

.lg-grewlist {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-grewrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(241, 237, 228, .06);
}

.lg-grewwords {
  flex: 1;
  min-width: 0;
  color: color-mix(in srgb, var(--starlight) 78%, transparent);
  font-size: 13px;
}

.lg-note {
  margin: 0;
  color: var(--dust);
  font-size: 13px;
  font-style: italic;
}

/* A Logged line: Change and Remove, and Remove's question */
.lb-item.is-logged .lb-kname {
  color: #F6AD3B;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lg-linebtns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}

.lg-linebtns .lg-lb {
  padding: 0 6px;
  color: color-mix(in srgb, var(--starlight) 78%, transparent);
  font-size: 13px;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.lg-ask {
  flex-basis: 100%;
  color: var(--starlight);
  font-size: 13px;
}

/* Evergreen's card */
.lg-cardhead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lg-cardic {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: 50%;
  color: #F6AD3B;
}

.lg-cardwords {
  display: grid;
  gap: 2px;
}

.lg-cardwords .lt-k {
  margin: 0;
}

.lg-cardline {
  color: var(--dust);
  font-size: 13px;
}

.lg-loglist {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-logrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}

.lg-logk {
  color: #F6AD3B;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lg-logwhen {
  color: var(--dust);
  font-size: 12px;
}

.lg-logt {
  grid-column: 1 / -1;
  font-size: 14px;
}

.lg-logrow .lg-linebtns {
  grid-column: 1 / -1;
  margin-left: -6px;
}

/* Riff's chat: a log's card (screen 40) */
.rc-log .rc-grew-row {
  align-items: flex-start;
}

.rc-log-pts {
  flex: none;
  color: #F6AD3B;
  font-family: var(--mono);
  font-size: 13px;
}

.rc-log-ic {
  display: grid;
  place-items: center;
  color: #F6AD3B;
}

.rc-log .rc-grew-acts .text-btn {
  padding: 0 6px;
  font-size: 13px;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.rc-log-gone {
  margin: 0;
  color: var(--dust);
  font-size: 13.5px;
}

.rc-card.rc-log {
  display: grid;
  gap: 2px;
  padding: 12px;
}
