/* ==========================================================================
   CHILD PATHSHALA - SORTING, ORDERING & WORD BUILDER STUDIO ENGINE
   Theme: Magnetic Snapping Tiles, Categorized Baskets, Sequence Builders
   ========================================================================== */

:root {
  --st-bg: #090e18;
  --st-panel: #111b2d;
  --st-border: #1e3250;
  --st-cyan: #06b6d4;
  --st-gold: #f59e0b;
  --st-green: #10b981;
  --st-purple: #8b5cf6;
}

.st-wrapper {
  background: radial-gradient(circle at 50% 15%, #162444 0%, #090e18 75%);
  border-radius: 26px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  padding: 1.5rem;
  max-width: 840px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Header HUD */
.st-hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.st-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(17, 27, 45, 0.85);
  border: 1px solid var(--st-border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Prompt Banner */
.st-prompt-box {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 14px;
  padding: 10px 18px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* Baskets / Categories Grid (for Sort mode) */
.st-baskets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.st-basket-card {
  background: rgba(17, 27, 45, 0.9);
  border: 2px dashed #334155;
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s;
  cursor: pointer;
}

.st-basket-card:hover {
  border-color: var(--st-cyan);
  background: rgba(17, 27, 45, 1);
  transform: translateY(-2px);
}

.st-basket-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--st-cyan);
  margin-bottom: 0.5rem;
}

.st-basket-items {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
}

/* Items Tray */
.st-items-tray {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0,0,0,0.3);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 80px;
}

.st-item-chip {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  user-select: none;
}

.st-item-chip:hover {
  border-color: var(--st-cyan);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 18px rgba(6, 182, 212, 0.3);
}

.st-item-chip.selected {
  border-color: #f59e0b;
  background: #78350f;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
  transform: scale(1.05);
}

/* Sequence Order Blocks (for Order mode) */
.st-order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.st-order-row {
  background: #111b2d;
  border: 2px solid #1e3250;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
}

.st-order-row:hover {
  border-color: var(--st-cyan);
  transform: translateX(4px);
}

.st-order-row.selected {
  border-color: var(--st-gold);
  background: #231d10;
}

.st-order-badge {
  background: #1e293b;
  border: 1px solid #334155;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Word Builder Letter Blocks */
.st-letter-blocks {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.st-letter-block {
  width: 48px;
  height: 58px;
  border-radius: 12px;
  background: #111b2d;
  border-bottom: 4px solid var(--st-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* Victory Screen */
.st-victory-wrap {
  text-align: center;
  padding: 2rem 1rem;
}
