﻿/* Topic-specific styles moved out of topics/shared/generic-topic.css. */
.ls-sort-lab {
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr);
}

.ls-source,
.ls-bins {
  display: grid;
  gap: 12px;
}

.ls-source {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 14px;
  border: 1px dashed rgba(76, 131, 240, 0.35);
  border-radius: 16px;
  background: rgba(76, 131, 240, 0.05);
}

.ls-bins {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ls-bin {
  min-height: 178px;
  padding: 12px;
  border: 1px solid rgba(190, 202, 222, 0.86);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7faff);
}

.ls-bin strong,
.ls-bin small {
  display: block;
  color: #344054;
  font-weight: 900;
}

.ls-bin-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 106px;
  margin: 10px 0;
}

.ls-token {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 82px;
  padding: 8px;
  border: 1px solid rgba(190, 202, 222, 0.85);
  border-radius: 14px;
  color: #344054;
  font-weight: 850;
  background: #fff;
  cursor: grab;
}

.ls-token:active {
  cursor: grabbing;
}

.ls-token.is-correct {
  border-color: rgba(20, 184, 166, 0.55);
  background: rgba(20, 184, 166, 0.1);
}

.ls-token.is-wrong {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

.ls-icon {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--shape-color);
}

.ls-icon.is-large {
  width: 42px;
  height: 42px;
}

.ls-icon.is-small {
  width: 30px;
  height: 30px;
}

.ls-square {
  border-radius: 7px;
}

.ls-rectangle {
  width: 48px;
  height: 28px;
  border-radius: 7px;
}

.ls-triangle {
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 40px solid var(--shape-color);
  border-radius: 0;
  background: transparent;
}

.ls-scene-board {
  display: grid;
  gap: 10px;
}

.ls-scene-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(120, 139, 168, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.ls-scene-group strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #263244;
  font-weight: 900;
}

.ls-scene-group em {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  font-style: normal;
  background: #4c83f0;
}

.ls-scene-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ls-scene-token {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  min-height: 54px;
  padding: 6px;
  color: #182230;
  background: rgba(76, 131, 240, 0.06);
  font-weight: 900;
}

.ls-scene-token::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(24, 34, 48, 0.2);
  background: var(--scene-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ls-scene-token.is-circle::before {
  border-radius: 999px;
}

.ls-scene-token.is-square::before {
  border-radius: 8px;
}

.ls-scene-token.is-rectangle::before {
  width: 42px;
  border-radius: 8px;
}

.ls-scene-token.is-triangle::before {
  width: 0;
  height: 0;
  border-right: 20px solid transparent;
  border-bottom: 36px solid var(--scene-color);
  border-left: 20px solid transparent;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

.ls-scene-token i {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-style: normal;
  font-size: 0.76rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ls-scene-token small {
  margin-top: 4px;
  color: #435268;
  font-size: 0.68rem;
  line-height: 1.1;
  text-align: center;
}

html[lang="en"] .ls-source {
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
}

html[lang="en"] .ls-bins {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

html[lang="en"] .ls-scene-items {
  align-items: flex-start;
  gap: 8px;
}

html[lang="en"] .ls-scene-group strong {
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

html[lang="en"] .ls-scene-token {
  align-content: start;
  justify-items: center;
  width: 76px;
  min-height: 82px;
  padding: 6px 5px;
}

html[lang="en"] .ls-scene-token small {
  max-width: 68px;
  font-size: 0.58rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
  hyphens: auto;
}

html[lang="en"] .ls-token {
  min-height: 92px;
  padding: 8px 6px;
  text-align: center;
}

html[lang="en"] .ls-token small {
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.ls-scene-sign:not(.is-triangle)::before,
.ls-scene-button:not(.is-triangle)::before {
  border-width: 4px;
  border-color: rgba(255, 255, 255, 0.88);
}

.ls-scene-dish::before,
.ls-scene-plate::before {
  border-radius: 999px;
  background: radial-gradient(circle, #fff 0 36%, var(--scene-color) 38% 100%);
}

.ls-scene-cup::before {
  width: 30px;
  border-radius: 4px 4px 12px 12px;
}

.ls-scene-shirt::before {
  clip-path: polygon(18% 18%, 34% 4%, 66% 4%, 82% 18%, 72% 36%, 72% 96%, 28% 96%, 28% 36%);
  border-radius: 4px;
}

.ls-scene-pants::before {
  clip-path: polygon(18% 4%, 82% 4%, 76% 96%, 56% 96%, 50% 40%, 44% 96%, 24% 96%);
  border-radius: 4px;
}

.ls-scene-scarf::before {
  width: 42px;
  height: 16px;
  border-radius: 999px;
}

.ls-scene-book::before {
  width: 32px;
  border-radius: 4px 9px 9px 4px;
  border-left-width: 7px;
}

.ls-scene-puzzle::before {
  border-radius: 10px;
  clip-path: polygon(0 0, 42% 0, 42% 18%, 58% 18%, 58% 0, 100% 0, 100% 42%, 82% 42%, 82% 58%, 100% 58%, 100% 100%, 0 100%);
}

.ls-scene-window::before {
  border-radius: 12px 12px 4px 4px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.8) 46% 54%, transparent 54%),
    linear-gradient(transparent 46%, rgba(255, 255, 255, 0.8) 46% 54%, transparent 54%),
    var(--scene-color);
}

.ls-scene-leaf::before,
.ls-scene-petal::before {
  border-radius: 100% 0 100% 0;
  transform: rotate(45deg);
}

.ls-scene-stone::before {
  border-radius: 48% 42% 52% 38%;
}

.ls-scene-bin::before {
  width: 30px;
  border-radius: 5px 5px 10px 10px;
  clip-path: polygon(12% 18%, 88% 18%, 78% 100%, 22% 100%);
}

.ls-scene-data::before {
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    var(--scene-color);
  background-size: 11px 11px;
}

