



.tl__intro {
  max-width: 74ch;
  margin: 0 auto 14px;
  color: var(--text-muted);
  font-size: var(--t-dense);
  text-align: center;
}

.tl__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
}



.tl__hint {
  min-height: 1.4em;
  color: var(--accent-green);
  font-size: var(--t-dense);
}

.tl__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 26px;
}





.tl-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-sunken);
  cursor: pointer;
}




.tl-row.is-active { border-color: var(--accent); }





.tl-row__head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: var(--bg-raised);
  border-right: 1px solid var(--rule);
  border-radius: var(--radius) 0 0 var(--radius);
}


.tl-row__icon {
  width: 58px;
  height: 58px;
  display: block;
  flex: none;
}



.tl-row__head--icon .tl-row__name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tl-row__head--icon:focus-within .tl-row__icon { display: none; }
.tl-row__head--icon:focus-within .tl-row__name {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
.tl-row__name {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-family: var(--font-game);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  

  overflow-wrap: anywhere;
  cursor: text;
}
.tl-row__name:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}



.tl-row__drop {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2px;
  min-height: 106px;
  padding: 4px;
}




.tl-row__drop:empty { min-height: 62px; }







.tl-row__drop .chara-card {
  zoom: 0.66;
  margin: 0;
}
.tl-row__drop .chara-card:hover { transform: none; }

.tl-row__tools {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 4px 6px;
  border-left: 1px solid var(--rule);
}
.tl-row__btn {
  width: 26px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: var(--t-dense);
  line-height: 1;
  cursor: pointer;
}
.tl-row__btn:hover { color: var(--text); border-color: var(--accent); }






@media (pointer: coarse), (hover: none) {
  .tl-row__btn {
    width: 44px;
    height: 44px;
    font-size: var(--t-lead);
  }
}




.tl__pool .chara-card { zoom: 0.8; }

@media (max-width: 640px) {
  

  .tl-row {
    grid-template-columns: 1fr auto;
  }
  .tl-row__head {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .tl-row__name { font-size: var(--t-lead); }
  .tl-row__icon { width: 40px; height: 40px; }
  .tl-row__drop {
    grid-column: 1 / -1;
    min-height: 60px;
  }
  .tl-row__tools {
    flex-direction: row;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }
}











.tl-row__drop .chara-card,
.tl__pool .chara-card {
  transition: opacity .12s ease, filter .12s ease;
}


.chara-card.is-dragging {
  opacity: .3;
  filter: grayscale(.6);
}




.tl-row.is-over,
.tl__pool.is-over {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-sunken));
}
.tl__pool.is-over {
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
}



.tl-mark {
  flex: 0 0 3px;
  align-self: stretch;
  min-height: 60px;
  margin: 0 1px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: tl-mark-in .12s ease-out;
}
@keyframes tl-mark-in {
  from { opacity: 0; transform: scaleY(.4); }
  to   { opacity: 1; transform: scaleY(1); }
}




.tl-row__drop .chara-card.is-landed {
  animation: tl-land .18s ease-out;
}
@keyframes tl-land {
  from { transform: scale(.82); opacity: .45; }
  to   { transform: scale(1); opacity: 1; }
}




.tl.is-dnd, .tl.is-dnd * { cursor: grabbing !important; }
.tl-row__drop .chara-card { cursor: grab; }



@media (prefers-reduced-motion: reduce) {
  .tl-row__drop .chara-card,
  .tl__pool .chara-card { transition: none; }
  .tl-mark { animation: none; }
  .tl-row__drop .chara-card.is-landed { animation: none; }
}
